]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/diff-mode.el (diff-mode): Disable view-mode keybindings.
authorJuri Linkov <juri@linkov.net>
Sun, 9 Feb 2025 07:40:44 +0000 (09:40 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:48:03 +0000 (09:48 +0100)
commitef56320d489cc19707b27e0992d29aaf3e9d45c5
treee9d7d8bf805a7e46f0cdad8f3d140ed3188f5ef7
parenta914d57de9d5262d31351392e47c1e034f3f6747
* 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).

(cherry picked from commit 35fa7126903a0ac6a28901d194f0753acf60928d)
lisp/vc/diff-mode.el