Function: find-function-mode

find-function-mode is an autoloaded, interactive and byte-compiled function defined in find-func.el.gz.

Signature

(find-function-mode &optional ARG)

Documentation

Enable some key bindings for the find-function family of functions.

This is a global minor mode. If called interactively, toggle the Find-Function mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate (default-value \=find-function-mode)'.

The mode's hook is called both when the mode is enabled and when it is disabled.

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/find-func.el.gz
;;;###autoload
(define-minor-mode find-function-mode
  "Enable some key bindings for the `find-function' family of functions."
  :group 'find-function :version "31.1" :global t :lighter nil
  (when find-function-mode-lower-precedence
    (rplacd (assq 'find-function-mode minor-mode-map-alist)
            (if find-function-mode
                (make-sparse-keymap)
              find-function-mode-map))
    (let ((parent (keymap-parent (current-global-map))))
      (if find-function-mode
          (unless (memq find-function-mode-map parent)
            (setf (keymap-parent (current-global-map))
                  (make-composed-keymap (list find-function-mode-map
                                              parent))))
        (when (memq find-function-mode-map parent)
          (delq find-function-mode-map parent))))))