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

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

[nongnu] elpa/bash-completion 081d03bedc 156/313: Fix issue #21 completi


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 081d03bedc 156/313: Fix issue #21 completion bug
Date: Sat, 3 Dec 2022 10:59:26 -0500 (EST)

branch: elpa/bash-completion
commit 081d03bedc26ffe4333bbfab17e1b5e5f8630360
Author: Karl Fogel <kfogel@red-bean.com>
Commit: Karl Fogel <kfogel@red-bean.com>

    Fix issue #21 completion bug
    
    Fix two problems introduced to `bash-completion-require-process' in
    commit 21149fdc: the `dolist' loop variable "start-file" was called
    "startfile1" in the body, and the conditional form at the start of the
    body was missing.
---
 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]