]> git.eshelyaron.com Git - emacs.git/commit
Renege on anonymous &rest (bug#50268, bug#50720)
authorMattias Engdegård <mattiase@acm.org>
Thu, 23 Sep 2021 10:43:41 +0000 (12:43 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 25 Sep 2021 18:25:01 +0000 (20:25 +0200)
commited02b88bbae18caad650d76876940ffb58cab554
tree36512b017e92a76a37c63606821274bd35366924
parent80fddff5d64ff915651eb751685b7430de00c536
Renege on anonymous &rest (bug#50268, bug#50720)

Allowing &rest without a variable name following turned out not to be
very useful, and it never worked properly.  Disallow it.

* lisp/emacs-lisp/bytecomp.el (byte-compile-check-lambda-list):
* src/eval.c (funcall_lambda):
Signal error for &rest without variable name.
* doc/lispref/functions.texi (Argument List): Adjust manual.
* etc/NEWS (file): Announce.
* test/src/eval-tests.el (eval-tests--bugs-24912-and-24913):
Extend test, also checking with and without lexical binding.
(eval-tests-accept-empty-optional-rest): Reduce to...
(eval-tests-accept-empty-optional): ...this, again checking
with and without lexical binding.
doc/lispref/functions.texi
etc/NEWS
lisp/emacs-lisp/bytecomp.el
src/eval.c
test/src/eval-tests.el