Function: find-variable

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

Signature

(find-variable VARIABLE)

Documentation

Find the definition of the VARIABLE at or before point.

Finds the library containing the definition of the variable near point (selected by variable-at-point) in a buffer and places point before the definition.

Set mark before moving, if the buffer already existed.

See also find-function-recenter-line and find-function-after-hook.

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
(defun find-variable (variable)
  "Find the definition of the VARIABLE at or before point.

Finds the library containing the definition of the variable
near point (selected by `variable-at-point') in a buffer and
places point before the definition.

Set mark before moving, if the buffer already existed.

See also `find-function-recenter-line' and `find-function-after-hook'."
  (interactive (find-function-read 'defvar))
  (find-function-do-it variable 'defvar 'switch-to-buffer))