Bind 's' to diff-split-hunk in read-only diff-mode

* lisp/vc/diff-mode.el (diff-mode-shared-map): Bind 's' to
'diff-split-hunk'.
* etc/NEWS: Document the change.
This commit is contained in:
Sean Whitton 2026-01-30 11:21:27 +00:00
parent 077b33ef7d
commit 705c0e3729
2 changed files with 4 additions and 0 deletions

View file

@ -2293,6 +2293,9 @@ region overlaps. Otherwise, they have their existing behavior.
With a prefix argument, it now reverse-applies hunks.
This matches the existing prefix argument to 'diff-apply-hunk'.
---
*** 's' is now bound to 'diff-split-hunk' in read-only Diff mode buffers.
** Ediff
+++

View file

@ -218,6 +218,7 @@ See also `diff-mode-read-only-map'."
"<mouse-2>" #'diff-goto-source
"o" #'diff-goto-source ; other-window
"<remap> <undo>" #'undo-ignore-read-only
"s" #'diff-split-hunk
;; The foregoing commands don't affect buffers beyond this one.
;; The following command is the only one that has a single-letter