Function: imenu-flush-cache

imenu-flush-cache is a byte-compiled function defined in imenu.el.gz.

Signature

(imenu-flush-cache)

Documentation

Flush the current imenu cache.

This forces a full rescan of the buffer to recreate the index alist next time imenu is invoked.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/imenu.el.gz
(defun imenu-flush-cache ()
  "Flush the current imenu cache.
This forces a full rescan of the buffer to recreate the index alist
next time `imenu' is invoked."
  (imenu--cleanup)
  (setq imenu--index-alist nil))