Go to the first, previous, next, last section, table of contents.


Read-Only Buffers

When a buffer has been marked as being read-only no modifications may be made to its contents (neither by the user nor a Lisp program).

Function: buffer-read-only-p &optional buffer
Returns t when the buffer is read-only.

Function: set-buffer-read-only buffer read-only
When read-only is non-nil the buffer buffer is marked as being read-only, otherwise it is read-write.

Variable: inhibit-read-only
When this variable is non-nil any buffer may be modified, even if it is marked as being read-only.

Lisp programs can temporarily bind a non-nil value to this variable when they want to edit one of their normally read-only buffers.


Go to the first, previous, next, last section, table of contents.