summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2005-06-22 13:55:32 +0000
committerJuanma Barranquero <lekktu@gmail.com>2005-06-22 13:55:32 +0000
commita1ef2eabbfc147671bb3eb5c403fc91d8e127e6c (patch)
treeeef203138067bfa9e0aa5975392379fe8f3de78d /lisp/help-mode.el
parent8906db2766b910fba8dd74fbb88447ec36ad5d9a (diff)
downloademacs-a1ef2eabbfc147671bb3eb5c403fc91d8e127e6c.tar.gz
(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.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 1c516930c3b..cd8c6a1c2dc 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -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.