diff options
| author | Matthew Tromp | 2025-05-19 15:45:21 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2025-05-31 17:23:08 +0300 |
| commit | 9d6a4fdd7e4e82ea804a83f428e395ffbbc3e8dd (patch) | |
| tree | c54a8f0b2601637a73463cc2269759bd2b7ab940 /java/incrementing-version-code | |
| parent | b247b1e0b16a5133ce11c92a110240f4c0217b06 (diff) | |
| download | emacs-9d6a4fdd7e4e82ea804a83f428e395ffbbc3e8dd.tar.gz emacs-9d6a4fdd7e4e82ea804a83f428e395ffbbc3e8dd.zip | |
Add additional keybindings for flymake diagnostics modes
This adds keybindings for C-o and C-m, and changes the bindings
for n and m, in `flymake-diagnostics-buffer-mode' and
`flymake-project-diagnostics-mode' buffers.
Previously, `flymake-project-diagnostics-mode' did not use the
keybindings for `flymake-diagnostics-buffer-mode'. RET and SPC
were never bound in `flymake-project-diagnostics-mode' buffers.
This seems to have been an oversight: since the filename and
message are buttons which call `flymake-goto-diagnostic',
pressing RET still brought users to the diagnostic at point
most of the time. This change adds a
`flymake-project-diagnostics-mode-map' which inherits from
`flymake-diagnostics-buffer-mode-map'.
C-o and C-m now show and jump to the diagnostic currently at point,
similar to how `compilation-mode' works.
n and p now show the diagnostic newly under point after moving up or
down a line, which is also intended to make behavior more similar to
`compilation-mode'.
In order that other next-error buffers do not interfere with
navigation in the diagnostics buffers, this change introduces and
uses new functions, `next-error-this-buffer-no-select' and
`previous-error-this-buffer-no-select'. If we instead used
`next-error-no-select' and `previous-error-no-select', then a user
who runs `flymake-show-diagnostics-buffer', then e.g. `compile',
then returns to the diagnostics buffer and presses 'n', would be
navigated to the next error in the compilation buffer.
* lisp/progmodes/flymake.el (flymake-diagnostics-buffer-mode-map): Add
bindings.
(flymake-project-diagnostics-mode-map): Inherit bindings from
`flymake-diagnostics-buffer-mode'
* lisp/simple.el (next-error-this-buffer-no-select):
(previous-error-this-buffer-no-select): Add new commands.
(Bug#78619)
Copyright-paperwork-exempt: yes
Diffstat (limited to 'java/incrementing-version-code')
0 files changed, 0 insertions, 0 deletions