]> git.eshelyaron.com Git - emacs.git/commit
Use the 'field' property to navigate through Eshell prompts
authorJim Porter <jporterbugs@gmail.com>
Sun, 8 Jan 2023 21:50:50 +0000 (13:50 -0800)
committerJim Porter <jporterbugs@gmail.com>
Sat, 14 Jan 2023 19:13:42 +0000 (11:13 -0800)
commitc257fd3a406d6aa83be60b96217e42b49b62cf5f
treed359112158e7a4bd79bb0d0332905c208bcfe186
parent54051c97f2e950eaa229b18f0cf209c727b2daa3
Use the 'field' property to navigate through Eshell prompts

* lisp/eshell/esh-mode.el (eshell-skip-prompt-function): Make
obsolete.

* lisp/eshell/em-prompt.el (eshell-prompt-regexp): Update docstring.
(eshell-prompt-initialize): Don't set 'eshell-skip-prompt-function'.
(eshell-next-prompt): Search for the 'field' property set to 'prompt'
to find the next prompt.
(eshell-previous-prompt): Move 'forward-line' call into
'eshell-next-prompt'.
(eshell-forward-matching-input, eshell-backward-matching-input):
Reimplement on top of 'eshell-next-prompt'.
(eshell-skip-prompt): Make obsolete.

* test/lisp/eshell/em-prompt-tests.el
(em-prompt-test/next-previous-prompt): New test.
lisp/eshell/em-prompt.el
lisp/eshell/esh-mode.el
test/lisp/eshell/em-prompt-tests.el