From 2bef95e52038eda9e5382d1f786a1042b8c7d1d3 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 13 Aug 2002 01:49:40 +0000 Subject: [PATCH] (find-function-search-for-symbol): Obey `definition-name' properties. --- lisp/emacs-lisp/find-func.el | 4 ++++ 1 file changed, 4 insertions(+) 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)))) -- 2.39.2