Variable: diff-mode-read-only-map
diff-mode-read-only-map is a variable defined in diff-mode.el.gz.
Value
<backtab> diff-hunk-prev
<mouse-2> diff-goto-source
@ diff-revert-and-kill-hunk
A diff-ediff-patch
C-x u undo-ignore-read-only
K diff-file-kill
N diff-file-next
P diff-file-prev
R diff-reverse-direction
RET diff-goto-source
TAB diff-hunk-next
W widen
k diff-hunk-kill
n diff-hunk-next
o diff-goto-source
p diff-hunk-prev
r diff-restrict-view
s diff-split-hunk
u diff-revert-and-kill-hunk
v vc-next-action
w diff-kill-ring-save
{ diff-file-prev
} diff-file-next
Documentation
Additional bindings for read-only diff-mode buffers.
Most of the bindings for read-only diff-mode buffers are in
diff-mode-shared-map. This map contains additional bindings for
read-only diff-mode buffers that are *not* also available with an ESC
prefix (i.e. a `M-' prefix) in read-write (nor read-only) diff-mode
buffers.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
;; Not `diff-read-only-mode-map' because there is no such mode
;; `diff-read-only-mode'; see comment above.
(defvar-keymap diff-mode-read-only-map
:parent diff-mode-shared-map
:doc "Additional bindings for read-only `diff-mode' buffers.
Most of the bindings for read-only `diff-mode' buffers are in
`diff-mode-shared-map'. This map contains additional bindings for
read-only `diff-mode' buffers that are *not* also available with an ESC
prefix (i.e. a \\=`M-' prefix) in read-write (nor read-only) `diff-mode'
buffers."
;; We don't want the following in read-write `diff-mode' buffers
;; because they hide useful `M-<foo>' global bindings when editing.
"W" #'widen
"w" #'diff-kill-ring-save
"A" #'diff-ediff-patch
"r" #'diff-restrict-view
"R" #'diff-reverse-direction
"s" #'diff-split-hunk
;; The foregoing commands in `diff-mode-shared-map' and
;; `diff-mode-read-only-map' don't affect buffers beyond this one.
;; The following commands are the only ones that have a
;; single-character binding and which affect something beyond the
;; current buffer. However, the following commands ask for
;; confirmation by default, so that seems okay. --spwhitton
"v" #'vc-next-action
"u" #'diff-revert-and-kill-hunk
;; `diff-revert-and-kill-hunk' is the `diff-mode' analogue of what '@'
;; does in VC-Dir, so give it the same short binding.
"@" #'diff-revert-and-kill-hunk)