[Top][All Lists]

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

Re: How to apply (multi file) patches conveniently

From: Nick Dokos
Subject: Re: How to apply (multi file) patches conveniently
Date: Tue, 07 Feb 2017 12:19:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Michael Heerdegen <> writes:

> Eli Zaretskii <> writes:
>> I just mark the entire patch in Emacs, then invoke "M-|", and type
>>   patch -d /the/root/directory/of/the/project -pN
>> where N should be chosen by counting the slashes that you will want
>> Patch to remove before looking for files relative to that root
>> directory.  For patches produced by "git diff" etc., N is typically 1.
> Ok thanks, then for now, I'll use a little command that is doing that
> for me (funnily it seems to be impossible to type M-| with a German
> keyboard, not even in X, because you need to hit Meta and AltGr and < at
> the same time, and that doesn't generate an event at all).

M-<anything> is a shortcut for ESC-<anything> so you could use the latter form,
as long as you have an ESC key.


reply via email to

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