[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to edit/modify patches using emacs?

From: Pascal Bourguignon
Subject: Re: How to edit/modify patches using emacs?
Date: Sun, 08 May 2005 15:42:23 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Andreas R." <address@hidden> 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__           
You never feed me.
Perhaps I'll sleep on your face.
That will sure show you.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]