; Fix an Eshell error when calling a lambda with form logging enabled

* lisp/eshell/esh-cmd.el (eshell-do-eval): Don't call 'symbol-name';
the function might be a closure.
This commit is contained in:
Jim Porter 2023-09-13 12:46:58 -07:00
parent 4b44178e72
commit 922d76e856

View file

@ -1180,7 +1180,7 @@ have been replaced by constants."
(if (and args (not (memq (car form) '(run-hooks))))
(eshell-manipulate form
(format-message "evaluating arguments to `%s'"
(symbol-name (car form)))
(car form))
(while args
(setcar args (eshell-do-eval (car args) synchronous-p))
(setq args (cdr args)))))