aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-08-24 02:30:59 +0000
committerGlenn Morris2007-08-24 02:30:59 +0000
commit43fcc18a256823e093a3aea795451f71e795c553 (patch)
treea62dc4793890a9094b12d4f4e467c8e62350022f
parent5fc9fdeb310edda5cf48bb3d19c103cb7a5017eb (diff)
downloademacs-43fcc18a256823e093a3aea795451f71e795c553.tar.gz
emacs-43fcc18a256823e093a3aea795451f71e795c553.zip
Nikolaj Schumacher <n_schumacher at web.de> (tiny change)
(eldoc-highlight-function-argument): New face. (eldoc-highlight-function-argument): Use it.
-rw-r--r--lisp/emacs-lisp/eldoc.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index 8b2538d299c..1d2441f884a 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -101,6 +101,11 @@ truncated to make more of the arglist or documentation string visible."
101 enable argument list to fit on one line" truncate-sym-name-if-fit)) 101 enable argument list to fit on one line" truncate-sym-name-if-fit))
102 :group 'eldoc) 102 :group 'eldoc)
103 103
104(defface eldoc-highlight-function-argument
105 '((t (:inherit bold)))
106 "Face used for the argument at point in a function's argument list."
107 :group 'eldoc)
108
104;;; No user options below here. 109;;; No user options below here.
105 110
106(defvar eldoc-message-commands-table-size 31 111(defvar eldoc-message-commands-table-size 31
@@ -303,7 +308,7 @@ highlights argument number INDEX. "
303In the absence of INDEX, just call `eldoc-docstring-format-sym-doc'." 308In the absence of INDEX, just call `eldoc-docstring-format-sym-doc'."
304 (let ((start nil) 309 (let ((start nil)
305 (end 0) 310 (end 0)
306 (argument-face 'bold)) 311 (argument-face 'eldoc-highlight-function-argument))
307 ;; Find the current argument in the argument string. We need to 312 ;; Find the current argument in the argument string. We need to
308 ;; handle `&rest' and informal `...' properly. 313 ;; handle `&rest' and informal `...' properly.
309 ;; 314 ;;