From a269bcb86beeb0d27c95aa4ff5bb3d22624c664a Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 2 Feb 2026 12:57:12 +0000 Subject: [PATCH] diff-mode-shared-map: Bind '@' to diff-revert-and-kill-hunk * lisp/vc/diff-mode.el (diff-mode-shared-map): Bind '@' to diff-revert-and-kill-hunk. --- lisp/vc/diff-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 28e29cf36c5..2f0d949f108 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -221,11 +221,12 @@ See also `diff-mode-read-only-map'." "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 + ;; 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 - "u" #'diff-revert-and-kill-hunk) + "u" #'diff-revert-and-kill-hunk + "@" #'diff-revert-and-kill-hunk) ;; Not `diff-read-only-mode-map' because there is no such mode ;; `diff-read-only-mode'; see comment above.