Variable: imenu-create-index-function
imenu-create-index-function is a buffer-local variable defined in
imenu.el.gz.
Documentation
The function to use for creating an index alist of the current buffer.
It should be a function that takes no arguments and returns
an index alist of the current buffer. The function is
called within a save-excursion.
See imenu--index-alist for the format of the buffer index alist.
Source Code
;; Defined in /usr/src/emacs/lisp/imenu.el.gz
;;;###autoload(put 'imenu-generic-expression 'risky-local-variable t)
;;;; Hooks
;;;###autoload
(defvar-local imenu-create-index-function 'imenu-default-create-index-function
"The function to use for creating an index alist of the current buffer.
It should be a function that takes no arguments and returns
an index alist of the current buffer. The function is
called within a `save-excursion'.
See `imenu--index-alist' for the format of the buffer index alist.")