projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28a9438
)
; Fix an edge case in how 'eshell-do-eval' handles 'let' bodies
author
Jim Porter
<jporterbugs@gmail.com>
Tue, 21 Mar 2023 00:24:28 +0000
(17:24 -0700)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/lisp/eshell/esh-cmd.el
b/lisp/eshell/esh-cmd.el
index 93f2616020c31cc6d846dbe3d4b73e97631b6a87..e0651b762491e172b6ee17462f846c37f9f7d790 100644
(file)
--- a/
lisp/eshell/esh-cmd.el
+++ b/
lisp/eshell/esh-cmd.el
@@
-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)