* lisp/imenu.el (imenu-flush-cache): New command (bug#20589).
conventional IRC behaviour of completing by cycling through the
available options can be restored by enabling this option.
+** imenu
+
+++
-** 'imenu' is now bound to 'M-g i' globally.
+*** 'imenu' is now bound to 'M-g i' globally.
+
+---
+*** New command 'imenu-flush-cache'.
* Editing Changes in Emacs 29.1
(`(,name . ,pos) (imenu (list name pos imenu-default-goto-function)))
(_ (error "Unknown imenu item: %S" index-item)))))
+(defun imenu-flush-cache ()
+ "Flush the current imenu cache."
+ (interactive)
+ (setq imenu--index-alist nil)
+ (message "Flushed the imenu cache"))
+
(provide 'imenu)
;;; imenu.el ends here