(byte-optimize-letX): Use car-safe and cdr-safe.
This commit is contained in:
parent
0656272711
commit
5d265171c8
1 changed files with 2 additions and 1 deletions
|
@ -940,7 +940,8 @@
|
|||
form)
|
||||
;; The body is nil
|
||||
((eq (car form) 'let)
|
||||
(append '(progn) (mapcar 'car (mapcar 'cdr (nth 1 form))) '(nil)))
|
||||
(append '(progn) (mapcar 'car-safe (mapcar 'cdr-safe (nth 1 form)))
|
||||
'(nil)))
|
||||
(t
|
||||
(let ((binds (reverse (nth 1 form))))
|
||||
(list 'let* (reverse (cdr binds)) (nth 1 (car binds)) nil)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue