summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/subr-x.el
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2024-05-23 14:55:59 -0700
committerJim Porter <jporterbugs@gmail.com>2024-05-29 12:09:06 -0700
commiteac608cb8041222ba3b2eac48ac6f76ac36bab16 (patch)
tree91343089d54746d0a6aae66e12c489c011078c67 /lisp/emacs-lisp/subr-x.el
parent9daf1085a9b11e056079edce8dccca92d69bf891 (diff)
downloademacs-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/subr-x.el')
0 files changed, 0 insertions, 0 deletions