Variable: diff-mode-shared-map
diff-mode-shared-map is a variable defined in diff-mode.el.gz.
Value
<backtab> diff-hunk-prev
<mouse-2> diff-goto-source
C-x u undo-ignore-read-only
K diff-file-kill
N diff-file-next
P diff-file-prev
RET diff-goto-source
TAB diff-hunk-next
k diff-hunk-kill
n diff-hunk-next
o diff-goto-source
p diff-hunk-prev
{ diff-file-prev
} diff-file-next
Documentation
Bindings for read-only diff-mode buffers.
These bindings are also available with an ESC prefix
(i.e. a `M-' prefix) in all diff-mode buffers, including in
particular read-write diff-mode buffers, and with a
diff-minor-mode-prefix prefix in diff-minor-mode(var)/diff-minor-mode(fun).
See also diff-mode-read-only-map.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/diff-mode.el.gz
;;;;
;;;; keymap, menu, ...
;;;;
;; The additional bindings in read-only `diff-mode' buffers are not
;; activated by turning on `diff-minor-mode' in those buffers. Instead,
;; a special entry in `minor-mode-map-alist' is used to achieve that.
;; I.e., `diff-mode-read-only' is a pseudo-minor mode for read-only
;; `diff-mode' buffers, while `diff-minor-mode' is a bona fide minor
;; mode for non-`diff-mode' buffers. (It's not clear there are
;; practical uses for `diff-minor-mode': bug#34080).
(defvar-keymap diff-mode-shared-map
:doc "Bindings for read-only `diff-mode' buffers.
These bindings are also available with an ESC prefix
(i.e. a \\=`M-' prefix) in all `diff-mode' buffers, including in
particular read-write `diff-mode' buffers, and with a
`diff-minor-mode-prefix' prefix in `diff-minor-mode'.
See also `diff-mode-read-only-map'."
"n" #'diff-hunk-next
"N" #'diff-file-next
"p" #'diff-hunk-prev
"P" #'diff-file-prev
"TAB" #'diff-hunk-next
"<backtab>" #'diff-hunk-prev
"k" #'diff-hunk-kill
"K" #'diff-file-kill
"}" #'diff-file-next ; From compilation-minor-mode.
"{" #'diff-file-prev
"RET" #'diff-goto-source
"<mouse-2>" #'diff-goto-source
"o" #'diff-goto-source ; other-window
"<remap> <undo>" #'undo-ignore-read-only)