From: Pascal Bourguignon <pjb@informatimago.com>
Subject: Re: How to edit/modify patches using emacs?
Date: Sun, 08 May 2005 15:42:23 +0200 [thread overview]
Message-ID: <87u0ldx29s.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: 427df645$0$26177$9b622d9e@news.freenet.de
"Andreas R." <newsgroupsREMOVE@freenet.de> 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.
next prev parent reply other threads:[~2005-05-08 13:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-08 11:23 How to edit/modify patches using emacs? Andreas R.
2005-05-08 11:43 ` Peter Dyballa
2005-05-08 12:09 ` Miles Bader
2005-05-08 12:19 ` Reiner Steib
2005-05-08 13:42 ` Pascal Bourguignon [this message]
2005-05-08 14:45 ` Miles Bader
2005-05-08 21:54 ` Micha Feigin
[not found] ` <mailman.4139.1115590433.2819.help-gnu-emacs@gnu.org>
2005-05-08 23:38 ` Miles Bader
2005-05-09 19:52 ` Andreas R.
2005-05-09 20:48 ` Stefan Monnier
2005-05-09 22:38 ` Miles Bader
[not found] ` <mailman.4311.1115678467.2819.help-gnu-emacs@gnu.org>
2005-05-09 22:53 ` Stefan Monnier
2005-05-09 23:41 ` Miles Bader
2005-05-10 19:39 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87u0ldx29s.fsf@thalassa.informatimago.com \
--to=pjb@informatimago.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.