# HG changeset patch # User Richard M. Stallman # Date 1029203380 0 # Node ID cbd462ecc9addfd911d6890eb702becf91585635 # Parent 7be80f782e2cdb4d8299b1a5e24243ae9fa38d1e (find-function-search-for-symbol): Obey `definition-name' properties. diff -r 7be80f782e2c -r cbd462ecc9ad lisp/emacs-lisp/find-func.el --- a/lisp/emacs-lisp/find-func.el Tue Aug 13 01:49:13 2002 +0000 +++ b/lisp/emacs-lisp/find-func.el Tue Aug 13 01:49:40 2002 +0000 @@ -118,6 +118,10 @@ `find-variable-regexp' is used. The search is done in library LIBRARY." (if (null library) (error "Don't know where `%s' is defined" symbol)) + ;; Some functions are defined as part of the construct + ;; that defines something else. + (while (get symbol 'definition-name) + (setq symbol (get symbol 'definition-name))) (save-match-data (if (string-match "\\.el\\(c\\)\\'" library) (setq library (substring library 0 (match-beginning 1))))