Improve documentation of shell-command-prompt-show-cwd

* doc/emacs/misc.texi (Single Shell):
* lisp/simple.el (shell-command): Document
'shell-command-prompt-show-cwd'.  (Bug#4987)
This commit is contained in:
Stefan Kangas 2019-10-17 12:55:25 +02:00
parent f75f90a5dd
commit 3cf92da6fa
2 changed files with 7 additions and 0 deletions

View file

@ -787,6 +787,11 @@ A positive integer tells the shell to use that number of columns for
command output. The default value is @code{nil} that means to use
the same number of columns as provided by the shell.
@vindex shell-command-prompt-show-cwd
To make the above commands show the current directory in their
prompts, customize the variable @code{shell-command-prompt-show-cwd}
to a non-nil value.
@kindex M-|
@findex shell-command-on-region
@kbd{M-|} (@code{shell-command-on-region}) is like @kbd{M-!}, but

View file

@ -3508,6 +3508,8 @@ a shell (with its need to quote arguments)."
With prefix argument, insert the COMMAND's output at point.
Interactively, prompt for COMMAND in the minibuffer.
If `shell-command-prompt-show-cwd' is non-nil, show the current
directory in the prompt.
If COMMAND ends in `&', execute it asynchronously.
The output appears in the buffer `*Async Shell Command*'.