diff options
author | Jim Porter <jporterbugs@gmail.com> | 2024-05-23 14:55:59 -0700 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-05-29 12:09:06 -0700 |
commit | eac608cb8041222ba3b2eac48ac6f76ac36bab16 (patch) | |
tree | 91343089d54746d0a6aae66e12c489c011078c67 /lisp/emacs-lisp/trace.el | |
parent | 9daf1085a9b11e056079edce8dccca92d69bf891 (diff) | |
download | emacs-eac608cb8041222ba3b2eac48ac6f76ac36bab16.tar.gz emacs-eac608cb8041222ba3b2eac48ac6f76ac36bab16.tar.bz2 emacs-eac608cb8041222ba3b2eac48ac6f76ac36bab16.zip |
Rework how 'eshell-ensure-newline-p' adds newlines
This allows for other output targets (see the following commit) to be
"line-oriented".
* lisp/eshell/esh-io.el (eshell-ensure-newline-p): Move from esh-cmd.el.
(eshell-target-line-oriented-p, eshell--output-maybe-n)
(eshell-print-maybe-n, eshell-error-maybe-n)
(eshell-maybe-output-newline): New functions.
* lisp/eshell/esh-cmd.el (eshell-lisp-command): Don't print a newline
in this function directly; instead, use 'eshell-print-maybe-n' and
'eshell-error-maybe-n'.
(eshell-ensure-newline-p): Move to esh-io.el.
* lisp/eshell/em-unix.el (eshell/cat): Remove now-unnecessary override
of 'eshell-ensure-newline-p'.
Diffstat (limited to 'lisp/emacs-lisp/trace.el')
0 files changed, 0 insertions, 0 deletions