Function: magit-which-function

magit-which-function is a byte-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 ~/.emacs.d/elpa/magit-20260411.1452/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))