aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell/eshell.el
diff options
context:
space:
mode:
authorJim Porter2023-08-29 17:02:40 -0700
committerJim Porter2023-08-31 18:42:03 -0700
commitccb62321d234993a66287c4e1a3cfdea63d140ff (patch)
tree7ffd2b146ef96a19522ae701586fa82b73ddc680 /lisp/eshell/eshell.el
parent17188e07ab9084f8d25dedcb784957a461348fa9 (diff)
downloademacs-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 'lisp/eshell/eshell.el')
-rw-r--r--lisp/eshell/eshell.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/eshell/eshell.el b/lisp/eshell/eshell.el
index 15fc2ae6310..cbd0de3c093 100644
--- a/lisp/eshell/eshell.el
+++ b/lisp/eshell/eshell.el
@@ -301,7 +301,8 @@ argument), then insert output into the current buffer at point."
301 `(let ((eshell-current-handles 301 `(let ((eshell-current-handles
302 (eshell-create-handles ,stdout 'insert)) 302 (eshell-create-handles ,stdout 'insert))
303 (eshell-current-subjob-p)) 303 (eshell-current-subjob-p))
304 ,(eshell-parse-command command)))) 304 ,(eshell-parse-command command))
305 command))
305 intr 306 intr
306 (bufname (if (eq (car-safe proc) :eshell-background) 307 (bufname (if (eq (car-safe proc) :eshell-background)
307 "*Eshell Async Command Output*" 308 "*Eshell Async Command Output*"