From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.bugs Subject: bug#1434: Docstring for `toggle-read-only' shouldn't imply the buffer is file-visiting Date: Wed, 26 Nov 2008 16:37:31 +0100 Message-ID: Reply-To: Juanma Barranquero , 1434@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227714633 8320 80.91.229.12 (26 Nov 2008 15:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2008 15:50:33 +0000 (UTC) To: Bug-Gnu-Emacs Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 16:51:36 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L5Mfv-000624-7C for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 16:51:35 +0100 Original-Received: from localhost ([127.0.0.1]:54142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5Mel-0005Gu-7M for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 10:50:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5Mef-0005Ee-Sn for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:50:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5Mee-0005DN-9P for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:50:17 -0500 Original-Received: from [199.232.76.173] (port=56769 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5Mee-0005DG-5Z for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:50:16 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56161) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L5Med-0001Hs-M1 for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:50:15 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAQFoBqw003589; Wed, 26 Nov 2008 07:50:11 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAQFj3ZT001654; Wed, 26 Nov 2008 07:45:03 -0800 X-Loop: don@donarmstrong.com Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 26 Nov 2008 15:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1434 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122771386032755 (code B ref -1); Wed, 26 Nov 2008 15:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 26 Nov 2008 15:37:40 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAQFbZk3032745 for ; Wed, 26 Nov 2008 07:37:36 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5MSM-0003yk-Ue for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:37:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5MSL-0003yE-HM for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:37:34 -0500 Original-Received: from [199.232.76.173] (port=35702 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5MSL-0003yB-BJ for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:37:33 -0500 Original-Received: from rn-out-0910.google.com ([64.233.170.184]:46523) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L5MSK-0006Yx-Vv for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2008 10:37:33 -0500 Original-Received: by rn-out-0910.google.com with SMTP id k32so528477rnd.7 for ; Wed, 26 Nov 2008 07:37:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=9WNFJsrtVLz2ONnaOIEprAAuod7aBhJCYy9CAvtuHio=; b=oAm1r8Eiyf6OcwFDddzG8CHNWaHAPPSeuu9uwMcq4kpyxzZidaL3VkUZoZU13zZts+ 3taka/uV5BPENaRkpc0L61M9pCwk21qr7kCkGtF2fwHrAqUVPyYCYASezf4qodJ5xR1r vTmU25L3cYP3VwkwU7MTZNSbTKJDlZCpvX1Ao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=FRQutnat0447UjX7YO6RT0kTuBfJbeOi507l63670KrQt3TdovYHuMCPfJCcMt3wnA fKBFgdMr0rRZICNr3nrIEu94hSsZd82ACCZkJGZAlE+pXCRzsiJHm7P22991kTFY5xHB 6Iz9UgB2/eJOs1Vh71cgdH/S6dW2QQvnYmUvA= Original-Received: by 10.100.141.10 with SMTP id o10mr3128946and.41.1227713851488; Wed, 26 Nov 2008 07:37:31 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Wed, 26 Nov 2008 07:37:31 -0800 (PST) Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 26 Nov 2008 10:50:17 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22699 Archived-At: 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