Function: magit-which-function
magit-which-function is a natively compiled function defined in
magit-base.el.
Signature
(magit-which-function)
Documentation
Return current function name based on point, without caching.
This is a simple wrapper around which-function, that resets
Imenu's potentially outdated and therefore unreliable cache by
setting imenu--index-alist to nil before calling that function.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-base.el
;;; Kludges for Emacs Bugs
(defun magit-which-function ()
"Return current function name based on point, without caching.
This is a simple wrapper around `which-function', that resets
Imenu's potentially outdated and therefore unreliable cache by
setting `imenu--index-alist' to nil before calling that function."
(setq imenu--index-alist nil)
(which-function))