# HG changeset patch # User Glenn Morris # Date 1228371199 0 # Node ID 4e81f7c8bb2c7150c6520dcc794dd8d365a3777f # Parent 84fb073c79f64df1f122c5e93e6f23d09685c70b (toggle-read-only): Doc fix. diff -r 84fb073c79f6 -r 4e81f7c8bb2c lisp/ChangeLog --- a/lisp/ChangeLog Thu Dec 04 03:24:41 2008 +0000 +++ b/lisp/ChangeLog Thu Dec 04 06:13:19 2008 +0000 @@ -1,3 +1,7 @@ +2008-12-04 Glenn Morris + + * files.el (toggle-read-only): Doc fix. + 2008-12-03 Stefan Monnier * apropos.el (apropos-print-doc): Fix thinko that caused long labels to diff -r 84fb073c79f6 -r 4e81f7c8bb2c lisp/files.el --- a/lisp/files.el Thu Dec 04 03:24:41 2008 +0000 +++ b/lisp/files.el Thu Dec 04 06:13:19 2008 +0000 @@ -4404,9 +4404,9 @@ (set-buffer-modified-p arg)) (defun toggle-read-only (&optional arg) - "Change whether this buffer is visiting its file read-only. + "Change whether this buffer is read-only. With prefix argument ARG, make the buffer read-only if ARG is -positive, otherwise make it writable. If visiting file read-only +positive, otherwise make it writable. If buffer is read-only and `view-read-only' is non-nil, enter view mode." (interactive "P") (if (and arg