Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
17cc9013
Commit
17cc9013
authored
Sep 24, 1996
by
Richard M. Stallman
Browse files
(shell-command-to-string): Make the buffer current
since output goes in current buffer. Use shell-command-switch.
parent
79e098ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/simple.el
lisp/simple.el
+3
-1
No files found.
lisp/simple.el
View file @
17cc9013
...
...
@@ -945,7 +945,9 @@ In either case, the output is inserted after point (leaving mark after it)."
(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)))
(with-current-buffer
standard-output
(call-process shell-file-name nil t nil shell-command-switch command))))
(defconst universal-argument-map
(let ((map (make-sparse-keymap)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment