emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/shell-command+ a869206 2/2: Check if shell-command-prom


From: ELPA Syncer
Subject: [elpa] externals/shell-command+ a869206 2/2: Check if shell-command-prompt-show-cwd is bound or not
Date: Mon, 1 Nov 2021 20:57:45 -0400 (EDT)

branch: externals/shell-command+
commit a8692061180042b9e452a4f89c0b0762fe969768
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Check if shell-command-prompt-show-cwd is bound or not
    
    The variable was introduced in Emacs 27.1, so earlier versions would
    try to evaluate an unbound symbol.
---
 shell-command+.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shell-command+.el b/shell-command+.el
index 38e19f1..ea30ea4 100644
--- a/shell-command+.el
+++ b/shell-command+.el
@@ -352,7 +352,7 @@ These extentions can all be combined with one-another.
 In case a region is active, `shell-command+' will only work with the region
 between BEG and END.  Otherwise the whole buffer is processed."
   (interactive (list (read-shell-command
-                      (if shell-command-prompt-show-cwd
+                      (if (bound-and-true-p shell-command-prompt-show-cwd)
                           (format shell-command+-prompt
                                   (abbreviate-file-name default-directory))
                         shell-command+-prompt))



reply via email to

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