diff options
author | Jim Porter <jporterbugs@gmail.com> | 2023-01-08 13:50:50 -0800 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2023-01-14 11:13:42 -0800 |
commit | c257fd3a406d6aa83be60b96217e42b49b62cf5f (patch) | |
tree | d359112158e7a4bd79bb0d0332905c208bcfe186 /lisp/emacs-lisp/helper.el | |
parent | 54051c97f2e950eaa229b18f0cf209c727b2daa3 (diff) | |
download | emacs-c257fd3a406d6aa83be60b96217e42b49b62cf5f.tar.gz emacs-c257fd3a406d6aa83be60b96217e42b49b62cf5f.tar.bz2 emacs-c257fd3a406d6aa83be60b96217e42b49b62cf5f.zip |
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.
Diffstat (limited to 'lisp/emacs-lisp/helper.el')
0 files changed, 0 insertions, 0 deletions