changeset 46874:cbd462ecc9ad

(find-function-search-for-symbol): Obey `definition-name' properties.
author Richard M. Stallman <rms@gnu.org>
date Tue, 13 Aug 2002 01:49:40 +0000
parents 7be80f782e2c
children f88c982e1f79
files lisp/emacs-lisp/find-func.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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))))