Variable: magit-log-trace-definition-function

magit-log-trace-definition-function is a customizable variable defined in magit-log.el.

Value

magit-which-function

Documentation

Function used to determine the function at point.

This is used by the command magit-log-trace-definition. You should prefer magit-which-function over which-function because the latter may make use of Imenu's outdated cache.

This variable was added, or its default value changed, in magit version 3.0.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-log.el
(defcustom magit-log-trace-definition-function #'magit-which-function
  "Function used to determine the function at point.
This is used by the command `magit-log-trace-definition'.
You should prefer `magit-which-function' over `which-function'
because the latter may make use of Imenu's outdated cache."
  :package-version '(magit . "3.0.0")
  :group 'magit-log
  :type `(radio (function-item ,#'magit-which-function)
                (function-item ,#'which-function)
                (function-item ,#'add-log-current-defun)
                function))