]> git.eshelyaron.com Git - emacs.git/commit
Fix "C-u M-!" when 'shell-command-dont-erase-buffer' is non-nil
authorEli Zaretskii <eliz@gnu.org>
Sat, 18 Apr 2020 09:01:26 +0000 (12:01 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Apr 2020 09:01:26 +0000 (12:01 +0300)
commit175c61c18bfaa1d75aa087ba4bd4de3ebfe1a1d6
treedfbb644b07477429f7958c7a8c01998aa6e68cf6
parent6b297519b580df27d8721943f55629689b4c83e0
Fix "C-u M-!" when 'shell-command-dont-erase-buffer' is non-nil

* lisp/simple.el (shell-command-dont-erase-buffer): Clarify the
effect of the various values in the doc string.
(shell-command-save-pos-or-erase, shell-command): Don't move or
push point if the output will go to the current buffer.
(Bug#40690)
(shell-command): Mention 'shell-command-dont-erase-buffer' in the
doc string.

* test/lisp/simple-tests.el
(with-shell-command-dont-erase-buffer): Don't is shell quoting
'like this', as it doesn't work on MS-Windows; quote "like this"
instead.
(simple-tests-shell-command-dont-erase-buffer): Adapt the test to
the new modus operandi.

* doc/emacs/misc.texi (Single Shell): Document the effect of the
various values of 'shell-command-dont-erase-buffer'.

* etc/NEWS: Expand and reword the entry regarding changes in
'shell-command-dont-erase-buffer'.
doc/emacs/misc.texi
etc/NEWS
lisp/simple.el
test/lisp/simple-tests.el