* bug#27325: Using '&rest' without a trailing parameter causes an error in emacs 26.0.50
@ 2017-06-11 7:22 isaac lewis
2017-06-11 8:15 ` Philipp Stephani
0 siblings, 1 reply; 3+ messages in thread
From: isaac lewis @ 2017-06-11 7:22 UTC (permalink / raw)
To: 27325
If my understanding is correct, the functions (lambda (&rest) t)
and (lambda () t) should behave similarly.
In emacs 25:
(equal (apply (lambda (&rest) t) nil)
(apply (lambda () t) nil))
=>
t
as expected. But evaluating the same sexp in emacs 26.0.50
causes an error.
--
Isaac Lewis
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#27325: Using '&rest' without a trailing parameter causes an error in emacs 26.0.50
2017-06-11 7:22 bug#27325: Using '&rest' without a trailing parameter causes an error in emacs 26.0.50 isaac lewis
@ 2017-06-11 8:15 ` Philipp Stephani
2017-06-22 10:52 ` npostavs
0 siblings, 1 reply; 3+ messages in thread
From: Philipp Stephani @ 2017-06-11 8:15 UTC (permalink / raw)
To: isaac lewis, 27325
[-- Attachment #1: Type: text/plain, Size: 555 bytes --]
isaac lewis <isaac.b.lewis@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.
[-- Attachment #2: Type: text/html, Size: 939 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#27325: Using '&rest' without a trailing parameter causes an error in emacs 26.0.50
2017-06-11 8:15 ` Philipp Stephani
@ 2017-06-22 10:52 ` npostavs
0 siblings, 0 replies; 3+ messages in thread
From: npostavs @ 2017-06-22 10:52 UTC (permalink / raw)
To: Philipp Stephani; +Cc: isaac lewis, 27325
tags 27325 notabug wontfix
close 27325
quit
Philipp Stephani <p.stephani2@gmail.com> writes:
> "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.
I'm therefore closing this bug. Note that omitting the parameter
doesn't work with edebug even in Emacs versions 25 and earlier (which
was the main motivation to make Emacs 26 more strict about this, if I
remember correctly).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-22 10:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-11 7:22 bug#27325: Using '&rest' without a trailing parameter causes an error in emacs 26.0.50 isaac lewis
2017-06-11 8:15 ` Philipp Stephani
2017-06-22 10:52 ` npostavs
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).