(help-make-xrefs): If a symbol representing a face name is not followed by the
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 22 Jun 2005 13:55:32 +0000 (13:55 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 22 Jun 2005 13:55:32 +0000 (13:55 +0000)
word "face", it could still be a function or variable name, so don't bypass
other checks.

lisp/ChangeLog
lisp/help-mode.el

index cca0beb..3cdad8f 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-22  Juanma Barranquero  <lekktu@gmail.com>
+
+       * help-mode.el (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.
+
 2005-06-22  Juri Linkov  <juri@jurta.org>
 
        * ps-print.el (ps-face-foreground-name, ps-face-background-name):
index 1c51693..cd8c6a1 100644 (file)
@@ -388,9 +388,10 @@ that."
 ;;;                            (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.