diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2021-09-23 12:43:41 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-09-25 20:25:01 +0200 |
commit | ed02b88bbae18caad650d76876940ffb58cab554 (patch) | |
tree | 36512b017e92a76a37c63606821274bd35366924 /test/lisp/emacs-lisp/find-func-tests.el | |
parent | 80fddff5d64ff915651eb751685b7430de00c536 (diff) | |
download | emacs-ed02b88bbae18caad650d76876940ffb58cab554.tar.gz emacs-ed02b88bbae18caad650d76876940ffb58cab554.tar.bz2 emacs-ed02b88bbae18caad650d76876940ffb58cab554.zip |
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.
Diffstat (limited to 'test/lisp/emacs-lisp/find-func-tests.el')
0 files changed, 0 insertions, 0 deletions