; * lisp/emacs-lisp/find-func.el (find-function): Doc fix.

This commit is contained in:
Eli Zaretskii 2025-05-22 09:43:45 +03:00
parent e0c6f3e765
commit b8f24cbdbb

View file

@ -626,14 +626,17 @@ Set mark before moving, if the buffer already existed."
;;;###autoload ;;;###autoload
(defun find-function (function) (defun find-function (function)
"Find the definition of the FUNCTION near point. "Find the definition of the Emacs Lisp FUNCTION near point.
Finds the source file containing the definition of the function Finds the source file containing the definition of the function
near point (selected by `function-called-at-point') in a buffer and near point (selected by `function-called-at-point') in a buffer and
places point before the definition. places point before the definition.
Set mark before moving, if the buffer already existed. Set mark before moving, if the buffer already existed.
See also `find-function-recenter-line' and `find-function-after-hook'." See also `find-function-recenter-line' and `find-function-after-hook'.
Use \\[xref-find-definitions] to find definitions of functions and variables
that are not part of Emacs."
(interactive (find-function-read)) (interactive (find-function-read))
(find-function-do-it function nil 'switch-to-buffer)) (find-function-do-it function nil 'switch-to-buffer))