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: Thu, 4 Dec 2008 01:04:00 +0100 Message-ID: References: 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 1228349500 8228 80.91.229.12 (4 Dec 2008 00:11:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2008 00:11:40 +0000 (UTC) Cc: 1434@emacsbugs.donarmstrong.com To: "Glenn Morris" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 01:12:43 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 1L81pW-0005XF-2o for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Dec 2008 01:12:30 +0100 Original-Received: from localhost ([127.0.0.1]:46062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L81oL-0007Q7-Gp for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Dec 2008 19:11:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L81nO-0006wy-AS for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 19:10:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L81nN-0006w1-7G for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 19:10:17 -0500 Original-Received: from [199.232.76.173] (port=43485 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L81nM-0006vr-Hb for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 19:10:16 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53136) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L81nM-0006ez-0q for bug-gnu-emacs@gnu.org; Wed, 03 Dec 2008 19:10:16 -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 mB40AD0O029414; Wed, 3 Dec 2008 16:10:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB40A4rX028804; Wed, 3 Dec 2008 16:10:04 -0800 X-Loop: don@donarmstrong.com Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 04 Dec 2008 00:10:04 +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 1434-submit@emacsbugs.donarmstrong.com id=B1434.122834905326696 (code B ref 1434); Thu, 04 Dec 2008 00:10:04 +0000 Original-Received: (at 1434) by emacsbugs.donarmstrong.com; 4 Dec 2008 00:04:13 +0000 Original-Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.187]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB404Amf026689 for <1434@emacsbugs.donarmstrong.com>; Wed, 3 Dec 2008 16:04:11 -0800 Original-Received: by rn-out-0910.google.com with SMTP id j66so3466542rne.20 for <1434@emacsbugs.donarmstrong.com>; Wed, 03 Dec 2008 16:04:05 -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:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=LyNyHd1z1cKE7I26AGJ7irosqyKmGabxnPj6fb+RgoQ=; b=mMhTtPKUskI8G9oNOoVWlGOEwt+C8+XPp0CiP/DBjQHT5T/RryqeJSLUCeYywfczVV zGEb2e2sqlCo1x4Jke7SdEQNBUTC1/cShTj8tWpyyCq4kg/8B92Xkj2lqjsCz2tYt/QI uRe5KzW1GN6Tkdd2hmSOR6MrTOe68a9shKgRM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=cyx+3HqSEq/oIVpZ4ysahls8P04qOAsZ+u5BNX8cuwD3CKm+Ja2I+3OrnPaclIOZvY YkgwgerZso8XieRcyvzqNO2TZuj6InTCj/oiOUyHrq6ZO+w7Lp0eKNLf1MZmaDTnjucO Wnsvq2TFchks0tOqsd7MTeoSnSIXIcBQCt/50= Original-Received: by 10.100.124.1 with SMTP id w1mr8142598anc.3.1228349045245; Wed, 03 Dec 2008 16:04:05 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Wed, 3 Dec 2008 16:04:00 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 03 Dec 2008 19:10: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:22931 Archived-At: On Thu, Dec 4, 2008 at 00:58, Glenn Morris wrote: > So let's change it? > --- 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 OK. Juanma