From a0eda892297a7d77bdb164eaa24af6c0de8cece0 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 11 May 2025 11:12:53 +0100 Subject: [PATCH] diff-mode-map: Unhide some additional M- * lisp/vc/diff-mode.el (diff-mode-map): Don't inherit M-?, M-SPC, M-DEL and M-S-SPC bindings through from special-mode-map. (cherry picked from commit 5b73625714ff6357170d83bff8fafa8d4c6a47c4) --- lisp/vc/diff-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 7070e71fc78..e0579331fa0 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -206,7 +206,8 @@ The default \"-b\" means to ignore whitespace-only changes, ;; We want to inherit most bindings from ;; `diff-mode-shared-map', but not all since they may hide ;; useful `M-' global bindings when editing. - (dolist (key '("A" "r" "R" "g" "q" "W" "z")) + (dolist (key '("A" "r" "R" "g" "q" "W" "w" "z" "?" + "SPC" "S-SPC" "DEL")) (keymap-set map key nil)) map) ;; From compilation-minor-mode. -- 2.39.5