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

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

[nongnu] elpa/bash-completion 664452aca2 157/313: Merge pull request #22


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 664452aca2 157/313: Merge pull request #22 from kfogel/21-fix-completion-re-21149fdc
Date: Sat, 3 Dec 2022 10:59:26 -0500 (EST)

branch: elpa/bash-completion
commit 664452aca2aa4a1f0c95848a41b81eae6d35cd51
Merge: a789093cd3 081d03bedc
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: GitHub <noreply@github.com>

    Merge pull request #22 from kfogel/21-fix-completion-re-21149fdc
    
    Fix issue #21 completion bug
---
 bash-completion.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bash-completion.el b/bash-completion.el
index 724697581a..79fd1aa473 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -991,8 +991,8 @@ is set to t."
            (set-process-query-on-exit-flag process nil)
            (let ((shell-name (file-name-nondirectory bash-completion-prog)))
               (dolist (start-file bash-completion-start-files)
-                ((file-exists-p startfile1)
-                 (process-send-string process (concat ". " startfile1 "\n")))))
+                (when (file-exists-p start-file)
+                  (process-send-string process (concat ". " start-file 
"\n")))))
            (bash-completion-send "PROMPT_COMMAND='';PS1='\t$?\v'" process 
bash-completion-initial-timeout)
            (bash-completion-send (concat "function __bash_complete_wrapper {"
                                          " eval $__BASH_COMPLETE_WRAPPER;"



reply via email to

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