1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(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.
This commit is contained in:
Juanma Barranquero 2005-06-22 13:55:32 +00:00
parent 8906db2766
commit a1ef2eabbf
2 changed files with 10 additions and 3 deletions

View 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):

View 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.