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

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

[nongnu] elpa/bash-completion f15176ee59 267/313: Fix to properly evalua


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion f15176ee59 267/313: Fix to properly evaluate PROMPT_COMMAND after restoring it.
Date: Sat, 3 Dec 2022 10:59:36 -0500 (EST)

branch: elpa/bash-completion
commit f15176ee59fe8ab2397e489f4c599c6e9a8fd038
Author: Stephane Zermatten <stephane@boomer.lan>
Commit: Stephane Zermatten <stephane@boomer.lan>

    Fix to properly evaluate PROMPT_COMMAND after restoring it.
    
    Before this change, the evaluation of PROMPT_COMMAND didn't work,
    because it used an unset variable.
---
 bash-completion.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bash-completion.el b/bash-completion.el
index 5bf88fdc05..6f558ed14b 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1266,8 +1266,8 @@ function __emacs_complete_recover_prompt {
   PS1=\"${__emacs_complete_ps1}\"
   PROMPT_COMMAND=\"${__emacs_complete_pc}\"
   unset __emacs_complete_ps1 __emacs_complete_pc
-  if [[ -n \"$__emacs_complete_pc\" ]]; then
-    eval \"$__emacs_complete_pc\"
+  if [[ -n \"$PROMPT_COMMAND\" ]]; then
+    eval \"$PROMPT_COMMAND\"
   fi
 }" process)
           (bash-completion--setup-bash-common process))



reply via email to

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