summaryrefslogtreecommitdiff
path: root/lisp/imenu.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/imenu.el')
-rw-r--r--lisp/imenu.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el
index e452b1bb8b9..a08c58f6825 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -900,7 +900,9 @@ for more information."
(_ (error "Unknown imenu item: %S" index-item)))))
(defun imenu-flush-cache ()
- "Flush the current imenu cache."
+ "Flush the current imenu cache.
+This forces a full rescan of the buffer to recreate the index alist
+next time `imenu' is invoked."
(interactive)
(setq imenu--index-alist nil)
(message "Flushed the imenu cache"))