projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c63e7f1
)
Avoid byte compiler warning for subr.el
author
Pip Cet
<pipcet@gmail.com>
Mon, 22 Jul 2019 20:09:42 +0000
(20:09 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Tue, 23 Jul 2019 00:47:42 +0000
(17:47 -0700)
* lisp/subr.el (number-sequence): Simplify to avoid byte compiler warning.
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index 9fd3366f8a6ade0dd2827adf6215f45112cd38b4..f1a4e8bb292422ac7b6197c8ce59cb66b794dd70 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-679,12
+679,11
@@
of course, also replace TO with a slightly larger value
(list from)
(or inc (setq inc 1))
(when (zerop inc) (error "The increment can not be zero"))
- (let (seq (n 0) (next from)
(last from)
)
+ (let (seq (n 0) (next from))
(if (> inc 0)
(while (<= next to)
(setq seq (cons next seq)
n (1+ n)
- last next
next (+ from (* n inc))))
(while (>= next to)
(setq seq (cons next seq)