From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: How to edit/modify patches using emacs? Date: Tue, 10 May 2005 07:38:57 +0900 Message-ID: <87hdhc81oe.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <427df645$0$26177$9b622d9e@news.freenet.de> <427fbef8$0$15822$9b622d9e@news.freenet.de> <87psw0f7o1.fsf-monnier+gnu.emacs.help@gnu.org> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115678018 26788 80.91.229.2 (9 May 2005 22:33:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 9 May 2005 22:33:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 10 00:33:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DVGnq-0000Ln-4r for geh-help-gnu-emacs@m.gmane.org; Tue, 10 May 2005 00:32:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVGwF-00013O-Jr for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2005 18:41:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DVGvw-00012B-6m for help-gnu-emacs@gnu.org; Mon, 09 May 2005 18:41:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DVGvu-00010u-Vy for help-gnu-emacs@gnu.org; Mon, 09 May 2005 18:41:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DVGvu-00010Y-M3 for help-gnu-emacs@gnu.org; Mon, 09 May 2005 18:41:02 -0400 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DVH00-0005HG-8L; Mon, 09 May 2005 18:45:16 -0400 Original-Received: from localhost ([127.0.0.1]) by smtp02.dentaku.gol.com with esmtp (Dentaku) id 1DVGtv-0007Vr-4W; Tue, 10 May 2005 07:38:59 +0900 Original-Received: from yokohama2-61-203-152-250.ap.0038.net ([61.203.152.250] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1DVGtu-0007Vk-CI; Tue, 10 May 2005 07:38:59 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 6088E2F60; Tue, 10 May 2005 07:38:57 +0900 (JST) Original-To: help-gnu-emacs@gnu.org System-Type: i686-pc-linux-gnu In-Reply-To: <87psw0f7o1.fsf-monnier+gnu.emacs.help@gnu.org> (Stefan Monnier's message of "Mon, 09 May 2005 16:48:34 -0400") Original-Lines: 24 X-Virus-Scanned: by AMaViS GOL X-Abuse-Complaints: abuse@gol.com X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26464 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26464 Stefan Monnier writes: >> No that's not the problem. If I open a file like .patch or .diff >> emacs opens it read-only (OK, I can rename the file, e.g. just to , >> then the problem no longer persists). > > Yes, it was a stupid idea of mine. See diff-default-read-only, which in > Emacs-CVS has been set to nil. Sorry 'bout it, I thought it was a rather good idea actually, though maybe the current default is better because it confuses users less. I use diff-mode a lot, but the _vast_ majority of diff files I visit are only examined or applied from emacs, not edited; indeed almost always the first thing I do when I visit one is toggle-read-only to prevent inadvertent modification and enable the move convenient command bindings. So, anyway I guess now I know I can set `diff-default-read-only' to t... -Miles -- "Nah, there's no bigger atheist than me. Well, I take that back. I'm a cancer screening away from going agnostic and a biopsy away from full-fledged Christian." [Adam Carolla]