From a1ef2eabbfc147671bb3eb5c403fc91d8e127e6c Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Wed, 22 Jun 2005 13:55:32 +0000 Subject: (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. --- lisp/help-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lisp/help-mode.el') 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. -- cgit v1.2.1