From: Juanma Barranquero Date: Wed, 26 Sep 2007 15:59:13 +0000 (+0000) Subject: (eldoc-function-argstring-format): Deal with the case that special X-Git-Tag: emacs-pretest-23.0.90~10608 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c4e36c26f634e0f9603b6d65eeebabe97b21378e;p=emacs.git (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. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 83526a50b8f..b09604eb0bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2007-09-26 Juanma Barranquero + + * emacs-lisp/eldoc.el (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. + 2007-09-26 Juanma Barranquero * emacs-lisp/eldoc.el (eldoc-message-commands-table-size) diff --git a/lisp/emacs-lisp/eldoc.el b/lisp/emacs-lisp/eldoc.el index 10eb821d4e7..7807fc763a4 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