1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 23:31:55 -08:00
emacs/lisp/eshell
Pengji Zhang 3959ea6644 Rework history Isearch for Eshell
This is to make history Isearch for Eshell similar to that of
'comint-mode', by hooking into Isearch properly instead of
defining new commands to emulate Isearch (bug#74287).

* lisp/eshell/em-hist.el (eshell-history-isearch): New user
option.
(eshell-goto-history, eshell--isearch-setup)
(eshell-history-isearch-end, eshell-history-isearch-search)
(eshell-history-isearch-message, eshell-history-isearch-wrap)
(eshell-history-isearch-push-state): New functions.
(eshell-isearch-backward-regexp, eshell-isearch-forward-regexp):
New commands.
(eshell--history-isearch-message-overlay)
(eshell--stored-incomplete-input, eshell--force-history-isearch):
New internal variables.
(eshell-hist-mode-map): Bind 'M-r' to
'eshell-isearch-backward-regexp' and free 'M-s' binding for
normal in-buffer search commands.
(eshell-isearch-backward, eshell-isearch-forward): Use the new
way to start searching.
(eshell-hist-initialize): Use the new Isearch setup function.
(eshell-previous-matching-input): Use 'eshell-goto-history'.
Also inhibit messages when searching.
(eshell-isearch-map, eshell-isearch-repeat-backward)
(eshell-isearch-abort, eshell-isearch-delete-char)
(eshell-isearch-return, eshell-isearch-cancel)
(eshell-isearch-repeat-forward, eshell-test-imatch)
(eshell-return-to-prompt, eshell-prepare-for-search): Remove.
These are for the old history Isearch implementation.

* doc/misc/eshell.texi (History): Document changes.

* etc/NEWS: Annouce changes.
2024-12-11 11:56:45 -08:00
..
em-alias.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
em-banner.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-basic.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-cmpl.el Add QUOTED argument to 'eshell-stringify' 2024-11-03 20:18:14 -08:00
em-dirs.el Always print the expanded directory name for Eshell's "pwd" command 2024-11-07 13:57:35 -08:00
em-elecslash.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-extpipe.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
em-glob.el Improve correctness of Eshell globs when using escape characters 2024-10-31 22:38:10 -07:00
em-hist.el Rework history Isearch for Eshell 2024-12-11 11:56:45 -08:00
em-ls.el Improve correctness of Eshell globs when using escape characters 2024-10-31 22:38:10 -07:00
em-pred.el Remove 'eshell-escape-arg' 2024-11-23 22:40:43 -08:00
em-prompt.el Don't clobber stickiness text properties when printing Eshell prompt 2024-11-14 09:19:31 -08:00
em-rebind.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-script.el Fix a race condition when running Eshell startup scripts 2024-10-21 14:21:50 -07:00
em-smart.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-term.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-tramp.el Use 'esh-module-autoload' for Eshell modules' defgroups 2024-05-29 12:09:05 -07:00
em-unix.el When using Eshell's "du" implementation, deduplicate hard links 2024-11-09 17:01:34 -08:00
em-xtra.el Fix definitions of Eshell "xtra" functions 2024-10-27 21:13:56 -07:00
esh-arg.el Remove 'eshell-escape-arg' 2024-11-23 22:40:43 -08:00
esh-cmd.el Fix usage reporting for Eshell commands 2024-12-08 20:23:46 -08:00
esh-ext.el Fix execution of MS-Windows app execution aliases in Eshell 2024-07-07 20:25:09 -07:00
esh-io.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
esh-mode.el Don't start docstrings with "This function" 2024-11-01 23:56:12 +01:00
esh-module.el Checkdoc fixes in eshell/*.el 2024-07-08 16:51:05 +02:00
esh-opt.el ; Compute the list of symbols for 'eshell-eval-using-options' once 2024-02-13 12:27:38 -08:00
esh-proc.el ; Fix typos 2024-11-21 10:06:19 +01:00
esh-util.el Move more of Eshell range handling to the parser phase 2024-11-03 20:18:14 -08:00
esh-var.el Remove 'eshell-escape-arg' 2024-11-23 22:40:43 -08:00
eshell.el Remove obsolete 'display-comint-buffer-action' (bug#74361) 2024-12-04 09:40:33 +02:00