Return text without properties from `shell-command-with-exit-code'
This commit is contained in:
parent
8666b82b75
commit
2feb06bc34
@ -854,7 +854,7 @@ output to =stdout=.
|
|||||||
"Run PROGRAM with ARGS and return exit-code and output in a list."
|
"Run PROGRAM with ARGS and return exit-code and output in a list."
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(list (apply 'call-process program nil (current-buffer) nil args)
|
(list (apply 'call-process program nil (current-buffer) nil args)
|
||||||
(buffer-string))))
|
(buffer-substring-no-properties (point-min) (point-max)))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* [[info:emacs#Help][Help (info)]]
|
* [[info:emacs#Help][Help (info)]]
|
||||||
|
Loading…
Reference in New Issue
Block a user