From 8bfbd1327ba950e6d16f76aa5681e21a52e148ff Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 4 Dec 2008 06:13:19 +0000 Subject: [PATCH] (toggle-read-only): Doc fix. --- lisp/ChangeLog | 4 ++++ lisp/files.el | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 776db585041..92cefd19be8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/files.el b/lisp/files.el index 1abc5de5aa2..ba281a908a1 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -4404,9 +4404,9 @@ prints a message in the minibuffer. Instead, use `set-buffer-modified-p'." (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 -- 2.39.2