Variable: buffer-read-only
buffer-read-only is a buffer-local variable defined in buffer.c.
Documentation
Non-nil if this buffer is read-only.
Probably introduced at or before Emacs version 14.
Source Code
// Defined in /usr/src/emacs/src/buffer.c
DEFVAR_PER_BUFFER ("buffer-read-only", &BVAR (current_buffer, read_only), Qnil,
doc: /* Non-nil if this buffer is read-only. */);