[Top][All Lists]

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

Re: How to apply (multi file) patches conveniently

From: Eli Zaretskii
Subject: Re: How to apply (multi file) patches conveniently
Date: Tue, 07 Feb 2017 22:03:08 +0200

> From: Michael Heerdegen <>
> Cc:
> Date: Tue, 07 Feb 2017 20:31:52 +0100
> > I just mark the entire patch in Emacs, then invoke "M-|", and type
> >
> >   patch -d /the/root/directory/of/the/project -pN
> Btw, like with `epatch', this apparently also works with the complete
> buffer contents - seems "patch" is smart enough to DTRT.  Which means,
> if I do this from within a command, I can probably avoid letting the
> user mark the patch as region.

It depends on what is at the beginning of the buffer, and what is
after the patch itself.  With some text there, Patch could become
utterly confused.  It does know about a typical beginning of an email
message, but buffer contents could be anything...

So I really recommend to mark the patch.

reply via email to

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