aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorTino Calancha2020-05-31 12:31:27 +0200
committerTino Calancha2020-05-31 12:31:27 +0200
commitabe7c22da96694ced1bc80ec7eb9eb8a662a568b (patch)
treefe3b5f03fd32b3ab65738a27e0721052cc250940 /etc
parent780f674a82a90c4e3e32583059b498bfa57e4a06 (diff)
downloademacs-abe7c22da96694ced1bc80ec7eb9eb8a662a568b.tar.gz
emacs-abe7c22da96694ced1bc80ec7eb9eb8a662a568b.zip
occur: Add bindings for next-error-no-select
Make the navigation in the occur buffer closer to the navigation in the compilation buffer. Add bindings to navigate the occur matches (Bug#39121). Honor `next-error-highlight' and `next-error-highlight-no-select' when navigating the occurrences. * lisp/replace.el (occur-highlight-regexp, occur-highlight-overlay): New variables. (occur-1): Set `occur-highlight-regexp' to the searched regexp. (occur-goto-locus-delete-o, occur--highlight-occurrence): New defuns. (occur-mode-display-occurrence, occur-mode-goto-occurrence): Use `occur--highlight-occurrence'. (occur-mode-map): Bind n to `next-error-no-select' and p to `previous-error-no-select' * etc/NEWS (Changes in Specialized Modes and Packages in Emacs 28.1): Announce this change. * test/lisp/replace-tests.el (replace-tests-with-highlighted-occurrence): Add helper macro. (occur-highlight-occurrence): Add test.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 64cf0abbdb4..3086ffaf91b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -109,6 +109,9 @@ setting the variable 'auto-save-visited-mode' buffer-locally to nil.
109 109
110* Changes in Specialized Modes and Packages in Emacs 28.1 110* Changes in Specialized Modes and Packages in Emacs 28.1
111 111
112** New bindings in occur-mode, 'next-error-no-select' bound to 'n' and
113'previous-error-no-select' bound to 'p'.
114
112** EIEIO: 'oset' and 'oset-default' are declared obsolete. 115** EIEIO: 'oset' and 'oset-default' are declared obsolete.
113 116
114** New minor mode 'cl-font-lock-built-in-mode' for `lisp-mode'. 117** New minor mode 'cl-font-lock-built-in-mode' for `lisp-mode'.