From: Richard M. Stallman Date: Tue, 13 Aug 2002 01:49:40 +0000 (+0000) Subject: (find-function-search-for-symbol): Obey `definition-name' properties. X-Git-Tag: ttn-vms-21-2-B4~13706 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2bef95e52038eda9e5382d1f786a1042b8c7d1d3;p=emacs.git (find-function-search-for-symbol): Obey `definition-name' properties. --- diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index 93c1f279e10..1ced2eae808 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el @@ -118,6 +118,10 @@ If VARIABLE-P is nil, `find-function-regexp' is used, otherwise `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))))