Changeset 4111 for trunk/lisp/emacs-lisp/find-func.el
- Timestamp:
- 07/16/06 08:36:52 (2 years ago)
- Files:
-
- trunk/lisp/emacs-lisp/find-func.el (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/emacs-lisp/find-func.el
r4058 r4111 206 206 (defun find-function-search-for-symbol (symbol type library) 207 207 "Search for SYMBOL's definition of type TYPE in LIBRARY. 208 Visit the library in a buffer, and return a cons cell (BUFFER . POSITION), 209 or just (BUFFER . nil) if the definition can't be found in the file. 210 208 211 If TYPE is nil, look for a function definition. 209 212 Otherwise, TYPE specifies the kind of definition, … … 245 248 (beginning-of-line) 246 249 (cons (current-buffer) (point))) 247 (error "Cannot find definition of `%s' in library `%s'" 248 symbol library)))))))) 250 (cons (current-buffer) nil)))))))) 249 251 250 252 ;;;###autoload … … 254 256 Finds the source file containing the definition of FUNCTION 255 257 in a buffer and the point of the definition. The buffer is 256 not selected. 258 not selected. If the function definition can't be found in 259 the buffer, returns (BUFFER). 257 260 258 261 If the file where FUNCTION is defined is not known, then it is … … 336 339 (push-mark orig-point)) 337 340 (funcall switch-fn new-buf) 338 ( goto-char new-point)341 (when new-point (goto-char new-point)) 339 342 (recenter find-function-recenter-line) 340 343 (run-hooks 'find-function-after-hook)))) … … 377 380 Finds the library containing the definition of VARIABLE in a buffer and 378 381 the point of the definition. The buffer is not selected. 382 If the variable's definition can't be found in the buffer, return (BUFFER). 379 383 380 384 The library where VARIABLE is defined is searched for in FILE or … … 422 426 (defun find-definition-noselect (symbol type &optional file) 423 427 "Return a pair `(BUFFER . POINT)' pointing to the definition of SYMBOL. 428 If the definition can't be found in the buffer, return (BUFFER). 424 429 TYPE says what type of definition: nil for a function, `defvar' for a 425 430 variable, `defface' for a face. This function does not switch to the
