diff options
| author | Jim Porter | 2023-08-29 17:02:40 -0700 |
|---|---|---|
| committer | Jim Porter | 2023-08-31 18:42:03 -0700 |
| commit | ccb62321d234993a66287c4e1a3cfdea63d140ff (patch) | |
| tree | 7ffd2b146ef96a19522ae701586fa82b73ddc680 /doc/misc | |
| parent | 17188e07ab9084f8d25dedcb784957a461348fa9 (diff) | |
| download | emacs-ccb62321d234993a66287c4e1a3cfdea63d140ff.tar.gz emacs-ccb62321d234993a66287c4e1a3cfdea63d140ff.zip | |
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'.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/eshell.texi | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi index f8f60bae13a..ee6c0f10b34 100644 --- a/doc/misc/eshell.texi +++ b/doc/misc/eshell.texi | |||
| @@ -619,10 +619,19 @@ environment. | |||
| 619 | @item eshell-debug | 619 | @item eshell-debug |
| 620 | @cmindex eshell-debug | 620 | @cmindex eshell-debug |
| 621 | Toggle debugging information for Eshell itself. You can pass this | 621 | Toggle debugging information for Eshell itself. You can pass this |
| 622 | command the argument @code{errors} to enable/disable Eshell trapping | 622 | command one or more of the following arguments: |
| 623 | errors when evaluating commands, or the argument @code{commands} to | 623 | |
| 624 | show/hide command execution progress in the buffer @code{*eshell last | 624 | @itemize @bullet |
| 625 | cmd*}. | 625 | |
| 626 | @item | ||
| 627 | @code{error}, to enable/disable Eshell trapping errors when | ||
| 628 | evaluating commands; or | ||
| 629 | |||
| 630 | @item | ||
| 631 | @code{form}, to show/hide Eshell command form manipulation in the | ||
| 632 | buffer @code{*eshell last cmd*}. | ||
| 633 | |||
| 634 | @end itemize | ||
| 626 | 635 | ||
| 627 | @item exit | 636 | @item exit |
| 628 | @cmindex exit | 637 | @cmindex exit |