projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac491b6
)
* lisp/emacs-lisp/seq.el (seq-doseq): Fix the macro.
author
Nicolas Petton
<nicolas@petton.fr>
Fri, 24 Apr 2015 21:12:50 +0000
(23:12 +0200)
committer
Nicolas Petton
<nicolas@petton.fr>
Fri, 24 Apr 2015 21:12:50 +0000
(23:12 +0200)
lisp/emacs-lisp/seq.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/seq.el
b/lisp/emacs-lisp/seq.el
index b8647ec93ecf92cb04eb57f1fec9d4d26e1a70bf..0050ff0a30348989b7ec296b01542054d3da7ef3 100644
(file)
--- a/
lisp/emacs-lisp/seq.el
+++ b/
lisp/emacs-lisp/seq.el
@@
-50,12
+50,12
@@
Evaluate BODY with VAR bound to each element of SEQ, in turn.
\(fn (VAR SEQ) BODY...)"
(declare (indent 1) (debug ((symbolp form &optional form) body)))
- (let ((
is-list (make-symbol "is-list
"))
+ (let ((
length (make-symbol "length
"))
(seq (make-symbol "seq"))
(index (make-symbol "index")))
`(let* ((,seq ,(cadr spec))
(,length (if (listp ,seq) nil (seq-length ,seq)))
- (,index (if ,
is-list ,seq 0
)))
+ (,index (if ,
length 0 ,seq
)))
(while (if ,length
(< ,index ,length)
(consp ,index))