* lisp/vc/diff-mode.el (diff-mode-read-only-map): Bind 'v'.

This commit is contained in:
Sean Whitton 2026-04-05 13:50:35 +01:00
parent c3fda2e34b
commit 859e0622ae
2 changed files with 8 additions and 4 deletions

View file

@ -2418,6 +2418,9 @@ you are in buffers generated by 'C-x v =' and 'C-x v D'.
When the region is active, the command reverse-applies and kills hunks
that the region overlaps.
---
*** 'v' is now bound to 'vc-next-action' in read-only Diff mode buffers.
---
*** 'diff-file-prev' and 'diff-hunk-prev' always move to start of header.
Previously, 'diff-file-prev' and 'diff-hunk-prev' would move when point

View file

@ -241,10 +241,11 @@ buffers."
;; The foregoing commands in `diff-mode-shared-map' and
;; `diff-mode-read-only-map' don't affect buffers beyond this one.
;; The following command is the only one that has a single-character
;; binding and which affects buffers beyond this one. However, the
;; following command asks for confirmation by default, so that seems
;; okay. --spwhitton
;; The following commands are the only ones that have a
;; single-character binding and which affect something beyond the
;; current buffer. However, the following commands ask for
;; confirmation by default, so that seems okay. --spwhitton
"v" #'vc-next-action
"u" #'diff-revert-and-kill-hunk
;; `diff-revert-and-kill-hunk' is the `diff-mode' analogue of what '@'
;; does in VC-Dir, so give it the same short binding.