diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2007-09-26 15:59:13 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2007-09-26 15:59:13 +0000 |
commit | c4e36c26f634e0f9603b6d65eeebabe97b21378e (patch) | |
tree | 5eb14f7e4fa97b4bc14171d0654502cf6c6937fe /lisp/emacs-lisp/eldoc.el | |
parent | d9d31f0a440e03d1a924e6835ec27b91afb493e1 (diff) |
(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.
Diffstat (limited to 'lisp/emacs-lisp/eldoc.el')
-rw-r--r-- | lisp/emacs-lisp/eldoc.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 10eb821d4e..7807fc763a 100644 --- a/lisp/emacs-lisp/eldoc.el +++ b/lisp/emacs-lisp/eldoc.el @@ -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 |