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

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

bug#24913: 25.1.50; Emacs accepts undocumented and confusing combination


From: Philipp Stephani
Subject: bug#24913: 25.1.50; Emacs accepts undocumented and confusing combinations of &optional and &rest in argument lists
Date: Fri, 18 Nov 2016 17:37:26 +0000



Eli Zaretskii <address@hidden> schrieb am Fr., 18. Nov. 2016 um 10:06 Uhr:
> From: Philipp Stephani <address@hidden>
> Date: Thu, 10 Nov 2016 12:58:39 +0000
>
> Philipp Stephani <address@hidden> schrieb am Mi., 9. Nov. 2016 um 22:19 Uhr:
>
>  For example:
>
>  (funcall (lambda (&optional &rest &rest &optional x) (list x)) 'a)
>  => ((a))
>
>  Obviously here the &rest keyword "wins", but I think that's overly
>  confusing. Such an argument list is most likely a programmer mistake,
>  and should signal an error to make the programmer aware of the mistake.
>
> Here's a patch that detects such argument lists.

Thanks, please push to master.

Done. 

reply via email to

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