# HG changeset patch # User Juanma Barranquero # Date 1190822314 0 # Node ID 8c8a527e7004f07dd574072b062236befdb5c513 # Parent 1ab291a013d4f287cb4d77a7ecbb227ca644de82 (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 -r 1ab291a013d4 -r 8c8a527e7004 lisp/emacs-lisp/eldoc.el --- a/lisp/emacs-lisp/eldoc.el Wed Sep 26 11:55:46 2007 +0000 +++ b/lisp/emacs-lisp/eldoc.el Wed Sep 26 15:58:34 2007 +0000 @@ -480,7 +480,8 @@ (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