Show
Ignore:
Timestamp:
07/16/06 08:36:52 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/emacs-lisp/find-func.el

    r4058 r4111  
    206206(defun find-function-search-for-symbol (symbol type library) 
    207207  "Search for SYMBOL's definition of type TYPE in LIBRARY. 
     208Visit the library in a buffer, and return a cons cell (BUFFER . POSITION), 
     209or just (BUFFER . nil) if the definition can't be found in the file. 
     210 
    208211If TYPE is nil, look for a function definition. 
    209212Otherwise, TYPE specifies the kind of definition, 
     
    245248                  (beginning-of-line) 
    246249                  (cons (current-buffer) (point))) 
    247               (error "Cannot find definition of `%s' in library `%s'" 
    248                      symbol library)))))))) 
     250              (cons (current-buffer) nil)))))))) 
    249251 
    250252;;;###autoload 
     
    254256Finds the source file containing the definition of FUNCTION 
    255257in a buffer and the point of the definition.  The buffer is 
    256 not selected. 
     258not selected.  If the function definition can't be found in 
     259the buffer, returns (BUFFER). 
    257260 
    258261If the file where FUNCTION is defined is not known, then it is 
     
    336339        (push-mark orig-point)) 
    337340      (funcall switch-fn new-buf) 
    338       (goto-char new-point
     341      (when new-point (goto-char new-point)
    339342      (recenter find-function-recenter-line) 
    340343      (run-hooks 'find-function-after-hook)))) 
     
    377380Finds the library containing the definition of VARIABLE in a buffer and 
    378381the point of the definition.  The buffer is not selected. 
     382If the variable's definition can't be found in the buffer, return (BUFFER). 
    379383 
    380384The library where VARIABLE is defined is searched for in FILE or 
     
    422426(defun find-definition-noselect (symbol type &optional file) 
    423427  "Return a pair `(BUFFER . POINT)' pointing to the definition of SYMBOL. 
     428If the definition can't be found in the buffer, return (BUFFER). 
    424429TYPE says what type of definition: nil for a function, `defvar' for a 
    425430variable, `defface' for a face.  This function does not switch to the