changeset 63657:06603f5724ed

(help-make-xrefs): If a symbol representing a face name is not followed by the word "face", it could still be a function or variable name, so don't bypass other checks.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 22 Jun 2005 13:53:56 +0000
parents ded0bd7f2a38
children 35913598e5b7
files lisp/help-mode.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help-mode.el	Wed Jun 22 12:07:36 2005 +0000
+++ b/lisp/help-mode.el	Wed Jun 22 13:53:56 2005 +0000
@@ -388,9 +388,10 @@
 ;;; 				(pop-to-buffer (car location))
 ;;; 				(goto-char (cdr location))))
 			  (help-xref-button 8 'help-function-def sym))
-			 ((facep sym)
-			  (if (save-match-data (looking-at "[ \t\n]+face\\W"))
-			      (help-xref-button 8 'help-face sym)))
+			 ((and
+                           (facep sym)
+                           (save-match-data (looking-at "[ \t\n]+face\\W")))
+                          (help-xref-button 8 'help-face sym))
                          ((and (boundp sym) (fboundp sym))
                           ;; We can't intuit whether to use the
                           ;; variable or function doc -- supply both.