bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26270: help-function-arglist doesn't respect "(fn ARGS...)" in docst


From: Lars Ingebrigtsen
Subject: bug#26270: help-function-arglist doesn't respect "(fn ARGS...)" in docstring
Date: Wed, 19 Aug 2020 13:31:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

npostavs@users.sourceforge.net writes:

> Severity: minor
>
>>From emacs -Q, evaluate:
>
>     (defun foo (&rest args)
>       "Do foo.
>
>     \(fn ARG1 ARG2)")
>
> <f1> f foo RET correctly shows (ARG1 ARG2) as the arglist:
>
>     foo is a Lisp function.
>
>     (foo ARG1 ARG2)
>
>     Do foo.
>
> But
>
>     (help-function-arglist 'foo) ;=> (&rest args)

I think the intention of help-function-arglist is to really return the
actual arglist -- it's used when composing functions on top of each
other (like in advice.el), I'm not sure that this is something that
should really be fixed?

Do you see the "real" arglist show up in contexts where the "advertised"
arglist should be displayed instead?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]