mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(copy-tree): Use let* to bind new before i.
This commit is contained in:
parent
3aa7cce7e4
commit
7dce3709b4
1 changed files with 2 additions and 2 deletions
|
|
@ -29,8 +29,8 @@
|
||||||
(cons (copy-tree (car tree))
|
(cons (copy-tree (car tree))
|
||||||
(copy-tree (cdr tree)))
|
(copy-tree (cdr tree)))
|
||||||
(if (vectorp tree)
|
(if (vectorp tree)
|
||||||
(let ((new (copy-sequence tree))
|
(let* ((new (copy-sequence tree))
|
||||||
(i (1- (length new))))
|
(i (1- (length new))))
|
||||||
(while (>= i 0)
|
(while (>= i 0)
|
||||||
(aset new i (copy-tree (aref new i)))
|
(aset new i (copy-tree (aref new i)))
|
||||||
(setq i (1- i)))
|
(setq i (1- i)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue