(eldoc-function-argstring-format): Deal with the case that special

&keywords are at the beginning or end of the argument list.
Also add some (incomplete) support for non-standard arglists.
This commit is contained in:
Juanma Barranquero 2007-09-26 15:59:13 +00:00
parent d9d31f0a44
commit c4e36c26f6
2 changed files with 9 additions and 1 deletions

View file

@ -480,7 +480,8 @@ The words \"&rest\", \"&optional\" are returned unchanged."
(if (member s '("&optional" "&rest"))
s
(funcall eldoc-argument-case s)))
(split-string argstring) " "))
(split-string argstring "[][ ()]+" t) " "))
;; When point is in a sexp, the function args are not reprinted in the echo
;; area after every possible interactive command because some of them print