changeset 50417:c047e3116b28

(number-sequence): Shorten the code.
author Kenichi Handa <handa@m17n.org>
date Thu, 03 Apr 2003 02:49:16 +0000
parents d6c0d7f63e86
children b2939c93b5f7
files lisp/subr.el
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Thu Apr 03 02:43:32 2003 +0000
+++ b/lisp/subr.el	Thu Apr 03 02:49:16 2003 +0000
@@ -186,10 +186,9 @@
 	  (setq to (1- from)))
     (setq to from))
   (let* ((list (make-list (- (1+ to) from) from))
-	 (tail (cdr list)))
-    (while tail
-      (setcar tail (setq from (1+ from)))
-      (setq tail (cdr tail)))
+	 (tail list))
+    (while (setq tail (cdr tail))
+      (setcar tail (setq from (1+ from))))
     list))
 
 (defun remove (elt seq)