GNU bug report logs - #27325
Using '&rest' without a trailing parameter causes an error in emacs 26.0.50

Previous Next

Package: emacs;

Reported by: isaac lewis <isaac.b.lewis <at> gmail.com>

Date: Sun, 11 Jun 2017 07:24:02 UTC

Severity: minor

Tags: notabug, wontfix

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: isaac lewis <isaac.b.lewis <at> gmail.com>, 27325 <at> debbugs.gnu.org
Subject: bug#27325: Using '&rest' without a trailing parameter causes an error in emacs 26.0.50
Date: Sun, 11 Jun 2017 08:15:27 +0000
[Message part 1 (text/plain, inline)]
isaac lewis <isaac.b.lewis <at> gmail.com> schrieb am So., 11. Juni 2017 um
09:24 Uhr:

> If my understanding is correct, the functions (lambda (&rest) t)
> and (lambda () t) should behave similarly.
>

From where did you get this understanding? The Elisp manual says about
&rest:
"To specify a list of zero or more extra arguments, include the
keyword &rest before one final argument."
and
"The keyword &rest (which must be followed by a single
argument name) indicates that any number of arguments can follow."
i.e. the parameter after &rest isn't optional.
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.