(cl-parse-loop-clause): Recognize
`collecting' as synonym for `collect'.
This commit is contained in:
parent
850e3ba089
commit
ae1aa776d6
1 changed files with 1 additions and 1 deletions
|
@ -888,7 +888,7 @@ Valid clauses are:
|
||||||
(cl-push (list (list temp (cl-pop args))) loop-bindings)
|
(cl-push (list (list temp (cl-pop args))) loop-bindings)
|
||||||
(cl-push (list '>= (list 'setq temp (list '1- temp)) 0) loop-body)))
|
(cl-push (list '>= (list 'setq temp (list '1- temp)) 0) loop-body)))
|
||||||
|
|
||||||
((eq word 'collect)
|
((memq word '(collect collecting))
|
||||||
(let ((what (cl-pop args))
|
(let ((what (cl-pop args))
|
||||||
(var (cl-loop-handle-accum nil 'nreverse)))
|
(var (cl-loop-handle-accum nil 'nreverse)))
|
||||||
(if (eq var loop-accum-var)
|
(if (eq var loop-accum-var)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue