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

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

[nongnu] elpa/bash-completion c5eaeed156 311/313: Always ensure that a c


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion c5eaeed156 311/313: Always ensure that a copy of the candidate list is returned (#48)
Date: Sat, 3 Dec 2022 10:59:40 -0500 (EST)

branch: elpa/bash-completion
commit c5eaeed156ab906190c662d491269230967104b1
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: GitHub <noreply@github.com>

    Always ensure that a copy of the candidate list is returned (#48)
    
    The caller of the completion table is allowed to mutate the list in place.
---
 bash-completion.el | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/bash-completion.el b/bash-completion.el
index 47b729c6d1..554ef56c78 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1702,13 +1702,6 @@ using the current Emacs completion style."
                                               (bash-completion--unparsed-stub 
comp)) "" str)))
             (cond
              ((null action) (try-completion completion-string result 
predicate))
-             ((and (eq action t) (equal "" completion-string) predicate)
-              (delq nil (mapcar
-                         (lambda (elt)
-                           (when (funcall predicate elt) elt))
-                         result)))
-             ((and (eq action t) (equal "" completion-string))
-              result)
              ((eq action t)
               (all-completions completion-string result predicate))
              (t (test-completion str result predicate)))))))))



reply via email to

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