]> git.eshelyaron.com Git - emacs.git/commit
Fix handling of Eshell debug modes
authorJim Porter <jporterbugs@gmail.com>
Wed, 30 Aug 2023 00:02:40 +0000 (17:02 -0700)
committerJim Porter <jporterbugs@gmail.com>
Fri, 1 Sep 2023 01:42:03 +0000 (18:42 -0700)
commitccb62321d234993a66287c4e1a3cfdea63d140ff
tree7ffd2b146ef96a19522ae701586fa82b73ddc680
parent17188e07ab9084f8d25dedcb784957a461348fa9
Fix handling of Eshell debug modes

Previously, these were enabled/disabled at byte-compilation time, but
we want to control them at runtime.

* lisp/eshell/esh-cmd.el (eshell-eval-command): Call
'eshell-debug-command-start'.
(eshell-manipulate): Check 'eshell-debug-command' at runtime.  Update
callers.
(eshell-debug-command): Move to "esh-util.el".
(eshell/eshell-debug, pcomplate/eshell-mode/eshell-debug): Move to
"em-basic.el".
(eshell-debug-show-parsed-args): Update implementation.

* lisp/eshell/esh-util.el (eshell-debug-command): Move from
"esh-cmd.el" and convert to a list.
(eshell-debug-command-buffer): New variable.
(eshell-condition-case): Check 'eshell-handle-errors' at runtime.
(eshell-debug-command-start): New function.
(eshell-debug-command): Move from "esh-cmd.el" and convert to a macro.

* lisp/eshell/em-basic.el (eshell/eshell-debug)
(pcomplete/eshell-mode/eshell-debug): Move from "esh-cmd.el" and
reimplement.

* lisp/eshell/eshell.el (eshell-command): Pass the original input to
'eshell-eval-command'.

* doc/misc/eshell.texi (Built-ins): Update documentation for
'eshell-debug'.
doc/misc/eshell.texi
lisp/eshell/em-basic.el
lisp/eshell/esh-cmd.el
lisp/eshell/esh-util.el
lisp/eshell/eshell.el