[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/shell-command+ a869206 2/2: Check if shell-command-prom
[elpa] externals/shell-command+ a869206 2/2: Check if shell-command-prompt-show-cwd is bound or not
Mon, 1 Nov 2021 20:57:45 -0400 (EDT)
Author: Philip Kaludercic <email@example.com>
Commit: Philip Kaludercic <firstname.lastname@example.org>
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
@@ -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)