1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

(shell-command-to-string): New function.

This commit is contained in:
Richard M. Stallman 1996-09-24 20:04:48 +00:00
parent 5db7925ddc
commit d589bd993b

View File

@ -941,6 +941,11 @@ In either case, the output is inserted after point (leaving mark after it)."
(set-buffer buffer)
(goto-char (point-min)))
(display-buffer buffer))))))))
(defun shell-command-to-string (command)
"Execute shell command COMMAND and return its output as a string."
(with-output-to-string
(call-process shell-file-name nil t nil "-c" command)))
(defconst universal-argument-map
(let ((map (make-sparse-keymap)))