GNU bug report logs - #1434
Docstring for `toggle-read-only' shouldn't imply the buffer is file-visiting

Previous Next

Package: emacs;

Reported by: "Juanma Barranquero" <lekktu <at> gmail.com>

Date: Wed, 26 Nov 2008 15:45:03 UTC

Severity: minor

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #18 received at 1434 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 1434 <at> debbugs.gnu.org
Subject: Re: bug#1434: Docstring for `toggle-read-only' shouldn't imply the buffer is file-visiting
Date: Wed, 03 Dec 2008 18:58:28 -0500
"Juanma Barranquero" wrote:

> `toggle-read-only' is useful for non-visiting buffers too, though
> the docstring seems to imply otherwise.

So let's change it?

*** files.el	3 Dec 2008 03:26:01 -0000	1.1022
--- files.el	3 Dec 2008 23:57:40 -0000
***************
*** 4404,4412 ****
    (set-buffer-modified-p arg))
  
  (defun toggle-read-only (&optional arg)
!   "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."
    (interactive "P")
    (if (and arg
--- 4404,4412 ----
    (set-buffer-modified-p arg))
  
  (defun toggle-read-only (&optional arg)
!   "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 buffer is read-only
  and `view-read-only' is non-nil, enter view mode."
    (interactive "P")
    (if (and arg




This bug report was last modified 16 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.