]> git.eshelyaron.com Git - emacs.git/commit
Refix conditional step clauses in cl-loop
authordickmao <none>
Fri, 22 Nov 2019 14:53:58 +0000 (15:53 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 22 Nov 2019 14:53:58 +0000 (15:53 +0100)
commit045cfbef09a67c334e4772cb045181cf2203d839
tree691550485b176158f4cf3466c3ccb0a2699cdc74
parentf373cec7f51653130bff0844262d356c2bf7c649
Refix conditional step clauses in cl-loop

* lisp/emacs-lisp/cl-macs.el
(cl--loop-bindings, cl--loop-symbol-macs, cl-loop):
Add cl--loop-conditions, remove cl--loop-guard-cond.
(cl--push-clause-loop-body): Apply clause to both cl--loop-conditions
and cl--loop-body
(cl--parse-loop-clause): Use cl--push-clause-loop-body.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs-loop-and-assignment):
Use docstring.
(cl-macs-loop-for-as-arith): Removed expected failure.
(cl-macs-loop-conditional-step-clauses): Add some tests (bug#29799).
lisp/emacs-lisp/cl-macs.el
test/lisp/emacs-lisp/cl-macs-tests.el