From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: How to edit/modify patches using emacs? Date: Sun, 08 May 2005 15:42:23 +0200 Organization: [posted via Easynet Spain] Message-ID: <87u0ldx29s.fsf@thalassa.informatimago.com> References: <427df645$0$26177$9b622d9e@news.freenet.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1115559622 18655 80.91.229.2 (8 May 2005 13:40:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 May 2005 13:40:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 08 15:40:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DUm0a-0002OK-NZ for geh-help-gnu-emacs@m.gmane.org; Sun, 08 May 2005 15:39:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DUm8h-0007JF-DF for geh-help-gnu-emacs@m.gmane.org; Sun, 08 May 2005 09:48:11 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:5Q/hiWJMGeQlSA80WN6ATp7whdY= Original-Lines: 22 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=B>8PDm;69;2OIbhl:UMjO`XO4V7=>Uh 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:26425 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26425 "Andreas R." writes: > When I open a patch (created by simple diff) emacs says it's read-only. You can force edit it (see the other answers), but I think the best way to "edit" a patch, is to duplicate the source directory, apply the patch on one copy, edit this copy of the source files, then invoke diff to create a new patch. cp -r src src-orig cd src patch -p1 < ../modifs.patch emacs * cd .. diff -Naur src-orig src > newmodifs.patch -- __Pascal Bourguignon__ http://www.informatimago.com/ You never feed me. Perhaps I'll sleep on your face. That will sure show you.