aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorReuben Thomas2017-06-28 22:40:33 +0100
committerReuben Thomas2017-08-07 21:57:22 +0100
commit85512e752191091d38cd5e34e7bed80eac1e9013 (patch)
treec021cd02e533631e4bc7bad90472997e4622e76b /doc
parent14ea76af5f3596d48747c2437006f6e1abcb67a7 (diff)
downloademacs-85512e752191091d38cd5e34e7bed80eac1e9013.tar.gz
emacs-85512e752191091d38cd5e34e7bed80eac1e9013.zip
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.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/misc.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 84681f2269a..73a6bae767a 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -742,6 +742,11 @@ this; e.g., whether to rename the pre-existing output buffer, or to
742use a different buffer for the new command. Consult the variable's 742use a different buffer for the new command. Consult the variable's
743documentation for more possibilities. 743documentation for more possibilities.
744 744
745@vindex async-shell-command-display-buffer
746 If you want the output buffer for asynchronous shell commands to be
747displayed only when the command generates output, set
748@code{async-shell-command-display-buffer} to @code{nil}.
749
745@kindex M-| 750@kindex M-|
746@findex shell-command-on-region 751@findex shell-command-on-region
747 @kbd{M-|} (@code{shell-command-on-region}) is like @kbd{M-!}, but 752 @kbd{M-|} (@code{shell-command-on-region}) is like @kbd{M-!}, but