From 587feed443522f738b65b57b22a31cc8a25525c5 Mon Sep 17 00:00:00 2001 From: Michael Heerdegen Date: Sun, 17 Feb 2013 20:30:27 -0500 Subject: * lisp/emacs-lisp/eldoc.el (eldoc-highlight-function-argument): Use font-lock-keyword-face for macros and special forms. Fixes: debbugs:8345 --- lisp/emacs-lisp/eldoc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/eldoc.el') diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 0f01857381..5a6b486dcd 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -356,7 +356,8 @@ In the absence of INDEX, just call `eldoc-docstring-format-sym-doc'." (setq doc (copy-sequence args)) (add-text-properties start end (list 'face argument-face) doc)) (setq doc (eldoc-docstring-format-sym-doc - sym doc 'font-lock-function-name-face)) + sym doc (if (functionp sym) 'font-lock-function-name-face + 'font-lock-keyword-face))) doc))) ;; Return a string containing a brief (one-line) documentation string for -- cgit v1.2.3