Function: find-definition-noselect
find-definition-noselect is an autoloaded and byte-compiled function
defined in find-func.el.gz.
Signature
(find-definition-noselect SYMBOL TYPE &optional FILE)
Documentation
Return a pair (BUFFER . POINT) pointing to the definition of SYMBOL.
If the definition can't be found in the buffer, return (BUFFER).
TYPE says what type of definition: nil for a function, defvar for a
variable, defface for a face. This function does not switch to the
buffer nor display it.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/find-func.el.gz
;;;###autoload
(defun find-definition-noselect (symbol type &optional file)
"Return a pair `(BUFFER . POINT)' pointing to the definition of SYMBOL.
If the definition can't be found in the buffer, return (BUFFER).
TYPE says what type of definition: nil for a function, `defvar' for a
variable, `defface' for a face. This function does not switch to the
buffer nor display it."
(cond
((not symbol)
(error "You didn't specify a symbol"))
((null type)
(find-function-noselect symbol))
((eq type 'defvar)
(find-variable-noselect symbol file))
(t
(let ((library (or file (symbol-file symbol type))))
(find-function-search-for-symbol symbol type library)))))