From 922d76e85615b39a9262d0f2c629dfd7e67b9e52 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Wed, 13 Sep 2023 12:46:58 -0700 Subject: [PATCH] ; 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. --- lisp/eshell/esh-cmd.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 95e9e2599e9..e5ddcfcaa35 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el @@ -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))))) -- 2.39.5