]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix an edge case in how 'eshell-do-eval' handles 'let' bodies
authorJim Porter <jporterbugs@gmail.com>
Tue, 21 Mar 2023 00:24:28 +0000 (17:24 -0700)
committerJim Porter <jporterbugs@gmail.com>
Tue, 28 Mar 2023 18:43:27 +0000 (11:43 -0700)
* lisp/eshell/esh-cmd.el (ehell-do-eval): Use 'car-safe'; the object
in question might not be a cons cell.

lisp/eshell/esh-cmd.el

index 93f2616020c31cc6d846dbe3d4b73e97631b6a87..e0651b762491e172b6ee17462f846c37f9f7d790 100644 (file)
@@ -1168,7 +1168,7 @@ have been replaced by constants."
        (setcar (cdr args) (eshell-do-eval (cadr args) synchronous-p))
        (eval form))
        ((eq (car form) 'let)
-        (when (not (eq (car (cadr args)) 'eshell-do-eval))
+        (unless (eq (car-safe (cadr args)) 'eshell-do-eval)
           (eshell-manipulate "evaluating let args"
             (dolist (letarg (car args))
               (when (and (listp letarg)