Function: which-func-ff-hook
which-func-ff-hook is a byte-compiled function defined in
which-func.el.gz.
Signature
(which-func-ff-hook)
Documentation
after-change-major-mode-hook for Which Function mode.
It creates the Imenu index for the buffer, if necessary.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/which-func.el.gz
(defun which-func-ff-hook ()
"`after-change-major-mode-hook' for Which Function mode.
It creates the Imenu index for the buffer, if necessary."
(which-func-try-to-enable)
(condition-case err
(if (and which-func-mode
(not (derived-mode-p which-func-non-auto-modes))
(or (null which-func-maxout)
(< buffer-saved-size which-func-maxout)
(= which-func-maxout 0)))
(setq imenu--index-alist
(save-excursion (funcall imenu-create-index-function))))
(imenu-unavailable
(which-func--disable))
(error
(message "which-func-ff-hook error: %S" err)
(which-func--disable))))