]> git.eshelyaron.com Git - emacs.git/commit
Optimise tail calls in `and` and `or` forms in `cl-labels` functions
authorMattias Engdegård <mattiase@acm.org>
Thu, 18 Mar 2021 12:33:09 +0000 (13:33 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 18 Mar 2021 12:35:55 +0000 (13:35 +0100)
commit52270aa0dc3313f42986a07413bf5b600d9fecbe
tree08446978f2b72d4a3a04448707dcccfeba2dfa58
parentce1b4acd71e962b6a72a779ee04cb5aeb6ceb6f2
Optimise tail calls in `and` and `or` forms in `cl-labels` functions

* lisp/emacs-lisp/cl-macs.el (cl--self-tco): Handle `and` and `or`.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels):
Add test cases.
lisp/emacs-lisp/cl-macs.el
test/lisp/emacs-lisp/cl-macs-tests.el