From: Jim Porter Date: Wed, 13 Sep 2023 19:46:58 +0000 (-0700) Subject: ; Fix an Eshell error when calling a lambda with form logging enabled X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=922d76e85615b39a9262d0f2c629dfd7e67b9e52;p=emacs.git ; 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. --- 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)))))