Return text without properties from `shell-command-with-exit-code'

This commit is contained in:
Gerard Vermeulen 2023-02-26 10:01:26 +01:00
parent 8666b82b75
commit 2feb06bc34

View File

@ -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)]]