]> git.eshelyaron.com Git - emacs.git/commit
Add command to recenter errors from Occur/Grep buffers
authorTino Calancha <ccalancha@suse.com>
Sun, 7 Feb 2021 15:51:07 +0000 (16:51 +0100)
committerTino Calancha <ccalancha@suse.com>
Sun, 7 Feb 2021 15:51:07 +0000 (16:51 +0100)
commit9380a7ed906e667df4fc5b9d9c8e487fafa7c654
tree15313b2ccd2b8a7cf21d2b70f7ae694f99bd0e9c
parent5461808c40ea5baeade203c0a4cc8200855eb00c
Add command to recenter errors from Occur/Grep buffers

To scroll up/down the current displayed occurrence/error
without abandon the Occur/Grep buffer.

Add also a command 'recenter-other-window' to recenter
the other window from any kind of buffer.

* lisp/window.el (recenter-other-window): New command.
Bind recenter-other-window to S-M-C-l (Bug#46119).

* lisp/simple.el (recenter-current-error): New command.
* lisp/progmodes/grep.el (grep-mode-map):
Delete bidings for n and p.

* lisp/progmodes/compile.el (compilation-minor-mode-map):
Move here the n and p bindings.
Bind `recenter-current-error' to l.
* lisp/replace.el (occur-mode-map):
Same.

* doc/emacs/windows.texi (Other Window):
* doc/emacs/display.texi (Recentering):
Document recenter-other-window.

* etc/NEWS (Changes in Specialized Modes and Packages in Emacs 28.1):
Announce the changes.
doc/emacs/display.texi
doc/emacs/windows.texi
etc/NEWS
lisp/progmodes/compile.el
lisp/progmodes/grep.el
lisp/replace.el
lisp/simple.el
lisp/window.el