Mercurial > hg > xemacs-beta
diff lisp/help.el @ 4671:e9b88e997479
Deal with arglist newlines better, #'function-arglist, #'function-documentation
lisp/ChangeLog addition:
2009-08-10 Aidan Kehoe <kehoea@parhasard.net>
* help.el (function-arglist, function-documentation):
Deal more gracefully with tabs in the function arglist; in
function-documentation, when stripping the arglist, pay attention
to the fact that they may span multiple lines.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 10 Aug 2009 16:22:09 +0100 |
parents | 48b45a606961 |
children | 2ac296807b88 |
line wrap: on
line diff
--- a/lisp/help.el Sun Aug 09 12:38:04 2009 +0100 +++ b/lisp/help.el Mon Aug 10 16:22:09 2009 +0100 @@ -1196,7 +1196,7 @@ doc) (match-string 1 doc))) (args (and args (replace-in-string args - "[ ]*\\\\\n[ ]*" + "[ ]*\\\\\n[ \t]*" " " t)))) ;; If there are no arguments documented for the ;; subr, rather don't print anything. @@ -1225,7 +1225,7 @@ (void-function "(alias for undefined function)") (error "(unexpected error from `documention')")))) (if (and strip-arglist - (string-match "[\n\t ]*\narguments: ?(\\(.*\\))\n?\\'" doc)) + (string-match "[\n\t ]*\narguments: ?(\\([^)]*\\))\n?\\'" doc)) (setq doc (substring doc 0 (match-beginning 0)))) doc))