Function: xref-find-definitions
xref-find-definitions is an autoloaded, interactive and byte-compiled
function defined in xref.el.gz.
Signature
(xref-find-definitions IDENTIFIER)
Documentation
Find the definition of the identifier at point.
With prefix argument or when there's no identifier at point, prompt for it.
If sufficient information is available to determine a unique definition for IDENTIFIER, display it in the selected window. Otherwise, display the list of the possible definitions in a buffer where the user can select from the list.
Use M-, (xref-pop-marker-stack) to return back to where you invoked this command.
Probably introduced at or before Emacs version 25.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/xref.el.gz
;;;###autoload
(defun xref-find-definitions (identifier)
"Find the definition of the identifier at point.
With prefix argument or when there's no identifier at point,
prompt for it.
If sufficient information is available to determine a unique
definition for IDENTIFIER, display it in the selected window.
Otherwise, display the list of the possible definitions in a
buffer where the user can select from the list.
Use \\[xref-pop-marker-stack] to return back to where you invoked this command."
(interactive (list (xref--read-identifier "Find definitions of: ")))
(xref--find-definitions identifier nil))