[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 943aa46587 04/11: Long lines only
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 943aa46587 04/11: Long lines only |
Date: |
Thu, 14 Sep 2023 06:59:53 -0400 (EDT) |
branch: elpa/helm
commit 943aa465870354527818e25d7521e2c164301e8c
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Long lines only
---
helm-elisp.el | 48 +++++++++++++++++++++++-------------------------
1 file changed, 23 insertions(+), 25 deletions(-)
diff --git a/helm-elisp.el b/helm-elisp.el
index 2b9ec6a7ce..4494dcd85d 100644
--- a/helm-elisp.el
+++ b/helm-elisp.el
@@ -915,31 +915,29 @@ a string, i.e. the `symbol-name' of any existing symbol."
(defun helm-locate-library ()
"Preconfigured helm to locate elisp libraries."
(interactive)
- (helm :sources (helm-build-in-buffer-source "Elisp libraries (Scan)"
- :data #'helm-locate-library-scan-list
- :fuzzy-match helm-locate-library-fuzzy-match
- :keymap helm-generic-files-map
- :filtered-candidate-transformer
- (lambda (candidates _source)
- (cl-loop with lgst =
(helm-in-buffer-get-longest-candidate)
- for c in candidates
- for sep = (make-string
- (1+ (- lgst
- (length c)))
- ? )
- for bn = (helm-basename (helm-basename c t) t)
- for path = (or (assoc-default bn
helm--locate-library-cache)
- (let ((p (find-library-name bn)))
- (push (cons bn p)
helm--locate-library-cache)
- p))
- for doc = (or (gethash bn
helm--locate-library-doc-cache)
- (puthash bn
(helm-locate-lib-get-summary path)
-
helm--locate-library-doc-cache))
- for disp = (helm-aand (propertize doc 'face
'font-lock-warning-face)
- (propertize " " 'display
(concat sep it))
- (concat bn it))
- collect (cons disp path)))
- :action (helm-actions-from-type-file))
+ (helm :sources
+ (helm-build-in-buffer-source "Elisp libraries (Scan)"
+ :data #'helm-locate-library-scan-list
+ :fuzzy-match helm-locate-library-fuzzy-match
+ :keymap helm-generic-files-map
+ :filtered-candidate-transformer
+ (lambda (candidates _source)
+ (cl-loop with lgst = (helm-in-buffer-get-longest-candidate)
+ for c in candidates
+ for sep = (make-string (1+ (- lgst (length c))) ? )
+ for bn = (helm-basename (helm-basename c t) t)
+ for path = (or (assoc-default bn
helm--locate-library-cache)
+ (let ((p (find-library-name bn)))
+ (push (cons bn p)
helm--locate-library-cache)
+ p))
+ for doc = (or (gethash bn helm--locate-library-doc-cache)
+ (puthash bn (helm-locate-lib-get-summary
path)
+ helm--locate-library-doc-cache))
+ for disp = (helm-aand (propertize doc 'face
'font-lock-warning-face)
+ (propertize " " 'display (concat
sep it))
+ (concat bn it))
+ collect (cons disp path)))
+ :action (helm-actions-from-type-file))
:buffer "*helm locate library*"))
- [nongnu] elpa/helm updated (6bf5f5a20f -> d093dae2b0), ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm 9d6cf3fbc4 03/11: Make locate-library caches private, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm e99ab71880 05/11: Add startup message for helm-locate-library, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm 23909635de 06/11: Display summary in helm-locate-library only when *completions-detailed is enabled, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm d4f2268808 07/11: Add docstring, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm 30f331b594 10/11: Prefer candidate-transformer in helm-locate-library, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm d093dae2b0 11/11: Fix startup message in helm-locate-library, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm 1902e35712 02/11: Ensure helm-elisp is required, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm 46b9b95a05 01/11: Add locate-library to library category, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm 943aa46587 04/11: Long lines only,
ELPA Syncer <=
- [nongnu] elpa/helm 07dacfe2e2 08/11: Prefer string-match-p over string-suffix-p, ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm cbad7919e9 09/11: Be consistent with candidate-transformer in both in-buffer and async, ELPA Syncer, 2023/09/14