diff options
author | Jim Porter <jporterbugs@gmail.com> | 2024-05-20 08:59:02 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-05-29 12:11:58 -0700 |
commit | 9280a619ab3141c0b3b8f4ae876f82e6a38c757f (patch) | |
tree | 0e1e83676be3f120c52f554ad2de1d9d5bf7df9c /lisp/emacs-lisp/trace.el | |
parent | eac608cb8041222ba3b2eac48ac6f76ac36bab16 (diff) | |
download | emacs-9280a619ab3141c0b3b8f4ae876f82e6a38c757f.tar.gz emacs-9280a619ab3141c0b3b8f4ae876f82e6a38c757f.tar.bz2 emacs-9280a619ab3141c0b3b8f4ae876f82e6a38c757f.zip |
Fix calling Eshell scripts outside of Eshell
* lisp/eshell/em-script.el (eshell-source-file): Make obsolete.
(eshell--source-file): Adapt from 'eshell-source-file'...
(eshell-script-initialize, eshell/source, eshell/.): ... use it.
(eshell-princ-target): New struct.
(eshell-output-object-to-target, eshell-target-line-oriented-p): New
implementations for 'eshell-princ-target'.
(eshell-execute-file, eshell-batch-file): New functions.
* lisp/eshell/esh-mode.el (eshell-mode): Just warn if we can't create
the Eshell directory.
* test/lisp/eshell/em-script-tests.el (em-script-test/execute-file):
(em-script-test/execute-file/args), em-script-test/batch-file): New
tests.
* test/lisp/eshell/eshell-tests-helpers.el (with-temp-eshell-settings):
New function...
(with-temp-eshell): ... use it.
* doc/misc/eshell.texi (Control Flow): Update documentation.
* etc/NEWS: Announce this change (bug#70847).
Diffstat (limited to 'lisp/emacs-lisp/trace.el')
0 files changed, 0 insertions, 0 deletions