emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3cf92da: Improve documentation of shell-command-pro


From: Stefan Kangas
Subject: [Emacs-diffs] master 3cf92da: Improve documentation of shell-command-prompt-show-cwd
Date: Thu, 17 Oct 2019 06:56:53 -0400 (EDT)

branch: master
commit 3cf92da6fa692656d64b70e510efcf4e3682f978
Author: Stefan Kangas <address@hidden>
Commit: Stefan Kangas <address@hidden>

    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)
---
 doc/emacs/misc.texi | 5 +++++
 lisp/simple.el      | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi
index 3bfb729..63b65e7 100644
--- a/doc/emacs/misc.texi
+++ b/doc/emacs/misc.texi
@@ -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
diff --git a/lisp/simple.el b/lisp/simple.el
index e44b877..cd674c3 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -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*'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]