* lisp/vc/diff-mode.el (diff-mode): Disable view-mode keybindings.

Put the property 'mode-class' with the value 'special' on the symbol
'diff-mode'.  This fixes the case when 'view-read-only' is non-nil
by disabling activation of 'view-mode' that overrides single keys
from 'diff-mode-shared-map' (bug#75993).
This commit is contained in:
Juri Linkov 2025-02-09 09:40:44 +02:00
parent 821ec78512
commit 35fa712690

View file

@ -1550,6 +1550,7 @@ else cover the whole buffer."
(defvar whitespace-style)
(defvar whitespace-trailing-regexp)
(put 'diff-mode 'mode-class 'special)
;;;###autoload
(define-derived-mode diff-mode fundamental-mode "Diff"
"Major mode for viewing/editing context diffs.