diff lisp/emacs-lisp/find-func.el @ 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 892ea515fb3a
children cacb7b6cf530
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))))