From 85512e752191091d38cd5e34e7bed80eac1e9013 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Wed, 28 Jun 2017 22:40:33 +0100 Subject: Allow async command output buffer to be shown only on output * lisp/simple.el (async-shell-command-display-buffer): Add defcustom. (shell-command): Use the new defcustom to determine whether to show the buffer immediately, or add a process filter that shows it only when there is some output. * etc/NEWS: Document the new variable. * doc/emacs/misc.texi: Likewise. Thanks to Juri Linkov and Eli Zaretskii for advice and guidance. --- etc/NEWS | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc') diff --git a/etc/NEWS b/etc/NEWS index b47bf959bed..58b08348b10 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -205,6 +205,11 @@ When 'shell-command-dont-erase-buffer' is nil, the default value, the behavior of 'shell-command', 'shell-command-on-region' and 'async-shell-command' is as usual. ++++ +** The new user option 'async-shell-command-display-buffer' controls +whether the output buffer of an asynchronous command is shown +immediately, or only when there is output. + +++ ** The new user option 'mouse-select-region-move-to-beginning' controls the position of point when double-clicking mouse-1 on the end -- cgit v1.2.1