diff options
author | Jim Porter <jporterbugs@gmail.com> | 2023-01-08 13:00:47 -0800 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2023-01-14 11:09:02 -0800 |
commit | 558f04c39e036d2f681f72556627768d7bee9ab5 (patch) | |
tree | 44f830fe483426bef5c88de708977dedc02a3063 /lisp/emacs-lisp/bytecomp.el | |
parent | a06c13db9eee0487975177089b44198dd08206be (diff) | |
download | emacs-558f04c39e036d2f681f72556627768d7bee9ab5.tar.gz emacs-558f04c39e036d2f681f72556627768d7bee9ab5.tar.bz2 emacs-558f04c39e036d2f681f72556627768d7bee9ab5.zip |
Set the 'field' property for Eshell output
This makes Eshell work more like 'M-x shell', and lets the <home> key
move to the beginning of the user's input at the prompt (bug#60666).
* lisp/eshell/em-prompt.el (eshell-emit-prompt): Add 'field' property
to prompt.
(eshell-bol-ignoring-prompt): New function.
* lisp/eshell/esh-io.el: Declare 'eshell-interactive-print'...
(eshell-output-object-to-target): ... use it.
* lisp/eshell/esh-mode.el (eshell-output-filter-functions): Update
docstring.
(eshell-interactive-print): Set the output to have a field value of
'command-output'.
(eshell-output-filter): Rename to...
(eshell-interactive-filter): ... this, and take a buffer instead of a
process.
* lisp/eshell/esh-proc.el (eshell-interactive-process-filter): New
function, adapted from 'eshell-output-filter'...
(eshell-gather-process-output): ... use it.
* test/lisp/eshell/em-prompt-tests.el: New file.
* etc/NEWS: Announce this change.
Diffstat (limited to 'lisp/emacs-lisp/bytecomp.el')
0 files changed, 0 insertions, 0 deletions