buffer-read-only

buffer-read-only is a variable defined in `C source code'.
Its value is
nil

global value is the same.
  • Automatically becomes permanently buffer-local when set.
  • This variable is safe as a file local variable if its value
    satisfies the predicate `booleanp'.

Documentation:
Non-nil if this buffer is read-only.