Subject: Docstring for `toggle-read-only' shouldn't imply the buffer is file-visiting

From: "Juanma Barranquero" <[email-masked]>
Date: Wed, 26 Nov 2008 16:37:31 +0100

Package: emacs
Severity: minor

Most references to readonly-ness in files.el do talk about
file-visiting buffers, which makes sense. However, `toggle-read-only'
is useful for non-visiting buffers too, though the docstring seems to
imply otherwise.

Docstring for `toggle-read-only' says:

 Change whether this buffer is visiting its file read-only.
 With prefix argument ARG, make the buffer read-only if ARG is
 positive, otherwise make it writable.  If visiting file read-only
 and `view-read-only' is non-nil, enter view mode.

   Juanma