[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 71019c80ff 6/7: Remove now unused lex-args in helm-cr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 71019c80ff 6/7: Remove now unused lex-args in helm-cr-default-transformer |
Date: |
Sun, 19 May 2024 01:00:12 -0400 (EDT) |
branch: elpa/helm
commit 71019c80ffa9f505ebc82542233c514b65a2e35e
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Remove now unused lex-args in helm-cr-default-transformer
---
helm-mode.el | 32 +++++++++++++++-----------------
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/helm-mode.el b/helm-mode.el
index c47446b814..04d0ed7edc 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -563,24 +563,22 @@ If COLLECTION is an `obarray', a TEST should be needed.
See `obarray'."
(member (downcase pattern) candidates)
(member (upcase pattern) candidates)))
-(defun helm-cr-default-transformer (candidates source)
+(defun helm-cr-default-transformer (candidates _source)
"Default filter candidate function for `helm-comp-read'."
- (let ((must-match (helm-get-attr 'must-match source))
- (raw-candidate (helm-get-attr 'raw-candidate source)))
- ;; Annotation and affixation are already handled in completion-in-region
and
- ;; in helm-completing-read-default-2 when emacs style is in use.
- ;; For helm-completing-read-default-1 we handle them in an extra FCT; This
- ;; allows extracting annotation and affixation from metadata which is not
- ;; accessible from here.
- (cl-loop for c in candidates
- for cand = (let ((elm (if (stringp c)
- (replace-regexp-in-string "\\s\\" "" c)
- c)))
- (cond ((and (stringp elm)
- (string-match "\n" elm))
- (cons (replace-regexp-in-string "\n" "->"
elm) c))
- (t c)))
- collect cand)))
+ ;; Annotation and affixation are already handled in completion-in-region and
+ ;; in helm-completing-read-default-2 when emacs style is in use.
+ ;; For helm-completing-read-default-1 we handle them in an extra FCT; This
+ ;; allows extracting annotation and affixation from metadata which is not
+ ;; accessible from here.
+ (cl-loop for c in candidates
+ for cand = (let ((elm (if (stringp c)
+ (replace-regexp-in-string "\\s\\" "" c)
+ c)))
+ (cond ((and (stringp elm)
+ (string-match "\n" elm))
+ (cons (replace-regexp-in-string "\n" "->" elm)
c))
+ (t c)))
+ collect cand))
(defun helm-comp-read--move-to-first-real-candidate ()
(helm-aif (helm-get-selection nil 'withprop)
- [nongnu] elpa/helm updated (ba2eb55235 -> 1b051fbf3e), ELPA Syncer, 2024/05/19
- [nongnu] elpa/helm 71019c80ff 6/7: Remove now unused lex-args in helm-cr-default-transformer,
ELPA Syncer <=
- [nongnu] elpa/helm 1b051fbf3e 7/7: Don't use anymore a space suffix in comp in region, ELPA Syncer, 2024/05/19
- [nongnu] elpa/helm 896ee07180 3/7: Fix require-match in completion-in-region, ELPA Syncer, 2024/05/19
- [nongnu] elpa/helm c6e79de30b 2/7: Use a dummy source for non matching candidates in helm-comp-read, ELPA Syncer, 2024/05/19
- [nongnu] elpa/helm 6c181a7d49 1/7: Add some more binding to helm-find-files-dummy-map, ELPA Syncer, 2024/05/19
- [nongnu] elpa/helm 4b42ce4299 5/7: Ensure dummy source is at end in read-file-name as well, ELPA Syncer, 2024/05/19
- [nongnu] elpa/helm 46a23666be 4/7: Put the dummy source at end in helm-comp-read, ELPA Syncer, 2024/05/19