* 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:
parent
821ec78512
commit
35fa712690
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue