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

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

[nongnu] elpa/helm ba3d01a511 1/6: Use the right affixation function in


From: ELPA Syncer
Subject: [nongnu] elpa/helm ba3d01a511 1/6: Use the right affixation function in completion
Date: Thu, 3 Aug 2023 15:59:47 -0400 (EDT)

branch: elpa/helm
commit ba3d01a511a811b6e0900f0914fd5eacf4380dad
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Use the right affixation function in completion
    
    We were previously using helm--symbol-completion-table-affixation
    which was the same as help--symbol-completion-table-affixation but for
    helm. This was ok at the time when only symbol completion were using
    this, i.e. it was the only affixation fn in Emacs, now affixation are
    used everywhere so ensure we call the affixation function decided by
    the caller.
---
 helm-mode.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helm-mode.el b/helm-mode.el
index 8048c8bd38..0408065a55 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -1869,7 +1869,8 @@ When FILE-COMP-P is provided only filter out dot files."
       (cl-loop for f in comps
                unless (string-match "\\`\\.\\{1,2\\}/\\'" f)
                collect f)
-    (cond (afix (helm--symbol-completion-table-affixation comps))
+    (cond (afix (cl-loop for (comp prefix suffix) in (funcall afix comps)
+                         collect (cons (concat prefix comp suffix) comp)))
           (afun
            ;; Add annotation at end of
            ;; candidate if needed, e.g. foo<f>, this happen when



reply via email to

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