From: Richard M. Stallman Date: Sat, 17 Aug 1996 02:10:31 +0000 (+0000) Subject: (shell-command): Really use output-buffer in synchronous X-Git-Tag: emacs-20.1~4068 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f2b3cdc312e6be03691b7a5940a1125a6fc949bf;p=emacs.git (shell-command): Really use output-buffer in synchronous case, when it is a buffer. --- diff --git a/lisp/simple.el b/lisp/simple.el index 8199892f3e0..915e1172155 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -828,7 +828,7 @@ In either case, the output is inserted after point (leaving mark after it)." (require 'shell) (shell-mode) (set-process-sentinel proc 'shell-command-sentinel) )) - (shell-command-on-region (point) (point) command nil) + (shell-command-on-region (point) (point) command output-buffer) )))))) ;; We have a sentinel to prevent insertion of a termination message