[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18048: 24.3.92; [patch] eldoc improvements
From: |
Thierry Volpiatto |
Subject: |
bug#18048: 24.3.92; [patch] eldoc improvements |
Date: |
Sat, 19 Jul 2014 10:11:13 +0200 |
Also the words &key and &allow-other-keys are upcased.
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el
index c64ec52..85c40b6 100644
--- a/lisp/emacs-lisp/eldoc.el
+++ b/lisp/emacs-lisp/eldoc.el
@@ -551,12 +551,15 @@ ARGLIST is either a string, or a list of strings or
symbols."
(defun eldoc-function-argstring-format (argstring)
"Apply `eldoc-argument-case' to each word in ARGSTRING.
-The words \"&rest\", \"&optional\" are returned unchanged."
- (mapconcat (lambda (s)
- (if (string-match-p "\\`(?&\\(?:optional\\|rest\\))?\\'" s)
- s
- (funcall eldoc-argument-case s)))
- (split-string argstring) " "))
+The words \"&rest\", \"&optional\", \"&key\" and \"&allow-other-keys\"
+are returned unchanged."
+ (mapconcat
+ (lambda (s)
+ (if (string-match-p
+ "\\`(?&\\(?:optional\\|rest\\|key\\|allow-other-keys\\))?\\'" s)
+ s
+ (funcall eldoc-argument-case s)))
+ (split-string argstring) " "))
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
- bug#18048: 24.3.92; [patch] eldoc improvements, Thierry Volpiatto, 2014/07/18
- bug#18048: 24.3.92; [patch] eldoc improvements, Stefan Monnier, 2014/07/18
- bug#18048: 24.3.92; [patch] eldoc improvements, Thierry Volpiatto, 2014/07/19
- bug#18048: 24.3.92; [patch] eldoc improvements, Thierry Volpiatto, 2014/07/19
- bug#18048: 24.3.92; [patch] eldoc improvements,
Thierry Volpiatto <=
- bug#18048: 24.3.92; [patch] eldoc improvements, Stefan Monnier, 2014/07/19
- bug#18048: 24.3.92; [patch] eldoc improvements, Thierry Volpiatto, 2014/07/21
- bug#18048: 24.3.92; [patch] eldoc improvements, Thierry Volpiatto, 2014/07/21
- bug#18048: 24.3.92; [patch] eldoc improvements, Thierry Volpiatto, 2014/07/21
- bug#18048: 24.3.92; [patch] eldoc improvements, Thierry Volpiatto, 2014/07/22