[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm a837e849ce 2/4: Reset cache with prefarg
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm a837e849ce 2/4: Reset cache with prefarg |
Date: |
Sat, 16 Sep 2023 13:00:07 -0400 (EDT) |
branch: elpa/helm
commit a837e849ce6c64f948be4531d720cc3745ff250f
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Reset cache with prefarg
---
helm-elisp.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/helm-elisp.el b/helm-elisp.el
index a7bab929e6..796baab4e6 100644
--- a/helm-elisp.el
+++ b/helm-elisp.el
@@ -912,7 +912,7 @@ a string, i.e. the `symbol-name' of any existing symbol."
dir nil (concat (regexp-opt (get-load-suffixes)) "\\'"))))
;;;###autoload
-(defun helm-locate-library ()
+(defun helm-locate-library (&optional arg)
"Preconfigured helm to locate elisp libraries.
When `completions-detailed' or `helm-completions-detailed' is non nil, a
description
@@ -923,8 +923,12 @@ package, using M-x psession-make-persistent-variable.
NOTE: The caches affect as well `find-libray' and `locate-library' when
`helm-mode' is enabled and `completions-detailed' is non nil.
There is no need to refresh the caches, they will be updated automatically if
-some new libraries are found."
- (interactive)
+some new libraries are found, however when a library update its headers and the
+description change you can reset the caches with a prefix arg."
+ (interactive "P")
+ (when arg
+ (setq helm--locate-library-cache nil)
+ (clrhash helm--locate-library-doc-cache))
(message "Please wait, scanning libraries...")
(helm :sources
(helm-build-in-buffer-source "Elisp libraries (Scan)"