Function: keymap-read-only-bind
keymap-read-only-bind is a byte-compiled function defined in
keymap.el.gz.
Signature
(keymap-read-only-bind BINDING)
Documentation
Behave like BINDING, but only when the buffer is read-only.
BINDING should be a command to pput in a keymap.
Return an element that can be added in a keymap with keymap-set, such that
it is active only when the current buffer is read-only.
Source Code
;; Defined in /usr/src/emacs/lisp/keymap.el.gz
(defun keymap-read-only-bind (binding)
"Behave like BINDING, but only when the buffer is read-only.
BINDING should be a command to pput in a keymap.
Return an element that can be added in a keymap with `keymap-set', such that
it is active only when the current buffer is read-only."
`(menu-item
"" ,binding
:filter ,#'keymap--read-only-filter))