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

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

[nongnu] elpa/helm 7995476f24 3/5: Ensure sorting is done in CAP


From: ELPA Syncer
Subject: [nongnu] elpa/helm 7995476f24 3/5: Ensure sorting is done in CAP
Date: Mon, 23 Sep 2024 04:00:56 -0400 (EDT)

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

    Ensure sorting is done in CAP
---
 helm-mode.el | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/helm-mode.el b/helm-mode.el
index e259481577..d60ef9b071 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -2706,12 +2706,14 @@ Can be used for `completion-in-region-function' by 
advicing it with an
                                   (t 
(helm-mode--completion-in-region-initial-input initial-input)))
                             :buffer buf-name
                             :fc-transformer
-                            (append (and (or afix afun (memq category '(file 
library)))
-                                         (list (lambda (candidates source)
-                                                 
(helm-completion--initial-filter
-                                                  (funcall 
helm-completion-in-region-default-sort-fn
-                                                           candidates source)
-                                                  afun afix category))))
+                            ;; When afun afix and category are nil
+                            ;; helm-completion--initial-filter returns
+                            ;; candidates (COMPS) unmodified.
+                            (append (list (lambda (candidates source)
+                                            (helm-completion--initial-filter
+                                             (funcall 
helm-completion-in-region-default-sort-fn
+                                                      candidates source)
+                                             afun afix category)))
                                     '(helm-cr-default-transformer))
                             :popup-info docsig
                             :match-dynamic (eq helm-completion-style 'emacs)



reply via email to

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