]> git.eshelyaron.com Git - emacs.git/commitdiff
(byte-optimize-letX): Use car-safe and cdr-safe.
authorRichard M. Stallman <rms@gnu.org>
Mon, 24 Apr 1995 04:21:21 +0000 (04:21 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 24 Apr 1995 04:21:21 +0000 (04:21 +0000)
lisp/emacs-lisp/byte-opt.el

index 1d394511c96d934479a7e1873ca5a59849a64b89..6e89aa2043596312f3b74895023f959a1c15badb 100644 (file)
         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)))))