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

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

[nongnu] elpa/bash-completion abeee42e65 112/313: Set comint-completion-


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion abeee42e65 112/313: Set comint-completion-addsuffix again in pre-emacs-24.1 mode.
Date: Sat, 3 Dec 2022 10:59:21 -0500 (EST)

branch: elpa/bash-completion
commit abeee42e6519f5974de2915631690c45c197bd2e
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Set comint-completion-addsuffix again in pre-emacs-24.1 mode.
---
 bash-completion.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/bash-completion.el b/bash-completion.el
index 7db5cd7dd7..726eeb89f8 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -323,7 +323,11 @@ instead."
       (if completions
          (if bash-completion-comint-uses-standard-completion
              (list stub-start pos completions)
-           (comint-dynamic-simple-complete stub completions))
+           ;; Setting comint-completion-addsuffix overrides
+           ;; configuration for comint-dynamic-simple-complete.
+           ;; Bash adds a space suffix automatically.
+           (let ((comint-completion-addsuffix nil))
+             (comint-dynamic-simple-complete stub completions)))
        ;; no standard completion
        ;; try default (file) completion after a wordbreak
        (bash-completion-dynamic-try-wordbreak-complete stub stub-start pos



reply via email to

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