]> git.eshelyaron.com Git - emacs.git/commit
Set the 'field' property for Eshell output
authorJim Porter <jporterbugs@gmail.com>
Sun, 8 Jan 2023 21:00:47 +0000 (13:00 -0800)
committerJim Porter <jporterbugs@gmail.com>
Sat, 14 Jan 2023 19:09:02 +0000 (11:09 -0800)
commit558f04c39e036d2f681f72556627768d7bee9ab5
tree44f830fe483426bef5c88de708977dedc02a3063
parenta06c13db9eee0487975177089b44198dd08206be
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.
etc/NEWS
lisp/eshell/em-prompt.el
lisp/eshell/esh-io.el
lisp/eshell/esh-mode.el
lisp/eshell/esh-proc.el
test/lisp/eshell/em-prompt-tests.el [new file with mode: 0644]