changeset 38705:92af2bb73b51

(describe-function-1): Use find-function-search-for-symbol instead of find-functin-noselect because the latter follows aliases.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 06 Aug 2001 14:28:36 +0000
parents aa6c656692d3
children b24d876e43f1
files lisp/help.el
diffstat 1 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Mon Aug 06 13:37:02 2001 +0000
+++ b/lisp/help.el	Mon Aug 06 14:28:36 2001 +0000
@@ -710,13 +710,16 @@
 	  (with-current-buffer "*Help*"
 	    (save-excursion
 	      (re-search-backward "`\\([^`']+\\)'" nil t)
-	      (help-xref-button 1 #'(lambda (arg)
-				      (let ((location
-					     (find-function-noselect arg)))
-					(pop-to-buffer (car location))
-					(goto-char (cdr location))))
-				function
-				"mouse-2, RET: find function's definition")))))
+	      (help-xref-button 
+	       1 
+	       #'(lambda (arg)
+		   (require 'find-func)
+		   (let* ((location (find-function-search-for-symbol
+				     arg nil (symbol-file arg))))
+		     (pop-to-buffer (car location))
+		     (goto-char (cdr location))))
+	       function
+	       "mouse-2, RET: find function's definition")))))
     (if need-close (princ ")"))
     (princ ".")
     (terpri)