[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 9d6cf3fbc4 03/11: Make locate-library caches private
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 9d6cf3fbc4 03/11: Make locate-library caches private |
Date: |
Thu, 14 Sep 2023 06:59:53 -0400 (EDT) |
branch: elpa/helm
commit 9d6cf3fbc49d15438a23475523aa0e39d7e297b1
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Make locate-library caches private
---
helm-elisp.el | 12 ++++++------
helm-mode.el | 8 ++++----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/helm-elisp.el b/helm-elisp.el
index a9c0377050..2b9ec6a7ce 100644
--- a/helm-elisp.el
+++ b/helm-elisp.el
@@ -902,8 +902,8 @@ a string, i.e. the `symbol-name' of any existing symbol."
;;; Locate elisp library
;;
;;
-(defvar helm-locate-library-cache nil)
-(defvar helm-locate-library-doc-cache (make-hash-table :test 'equal))
+(defvar helm--locate-library-cache nil)
+(defvar helm--locate-library-doc-cache (make-hash-table :test 'equal))
(defun helm-locate-library-scan-list ()
(cl-loop for dir in load-path
with load-suffixes = (find-library-suffixes)
@@ -928,13 +928,13 @@ a string, i.e. the `symbol-name' of any existing symbol."
(length c)))
? )
for bn = (helm-basename (helm-basename c t) t)
- for path = (or (assoc-default bn
helm-locate-library-cache)
+ for path = (or (assoc-default bn
helm--locate-library-cache)
(let ((p (find-library-name bn)))
- (push (cons bn p)
helm-locate-library-cache)
+ (push (cons bn p)
helm--locate-library-cache)
p))
- for doc = (or (gethash bn
helm-locate-library-doc-cache)
+ for doc = (or (gethash bn
helm--locate-library-doc-cache)
(puthash bn
(helm-locate-lib-get-summary path)
-
helm-locate-library-doc-cache))
+
helm--locate-library-doc-cache))
for disp = (helm-aand (propertize doc 'face
'font-lock-warning-face)
(propertize " " 'display
(concat sep it))
(concat bn it))
diff --git a/helm-mode.el b/helm-mode.el
index c1d1c8eeaf..1ce8498e11 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -1281,13 +1281,13 @@ is used."
(let* ((sep (make-string (1+ (- (helm-in-buffer-get-longest-candidate)
(length comp)))
? ))
- (path (or (assoc-default comp helm-locate-library-cache)
+ (path (or (assoc-default comp helm--locate-library-cache)
(let ((p (find-library-name comp)))
- (push (cons comp p) helm-locate-library-cache)
+ (push (cons comp p) helm--locate-library-cache)
p)))
- (doc (or (gethash comp helm-locate-library-doc-cache)
+ (doc (or (gethash comp helm--locate-library-doc-cache)
(puthash comp (helm-locate-lib-get-summary path)
- helm-locate-library-doc-cache))))
+ helm--locate-library-doc-cache))))
(list comp
""
(helm-aand (propertize doc 'face 'font-lock-warning-face)
- [nongnu] elpa/helm updated (6bf5f5a20f -> d093dae2b0), ELPA Syncer, 2023/09/14
- [nongnu] elpa/helm 9d6cf3fbc4 03/11: Make locate-library caches private,
ELPA Syncer <=
- [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, 2023/09/14
- [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