[Top][All Lists]

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

Re: [OT] Working with patches inlined in emails

From: João Távora
Subject: Re: [OT] Working with patches inlined in emails
Date: Thu, 18 Jun 2015 10:27:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt)

Eli Zaretskii <address@hidden> writes:

>> From: Nicolas Petton <address@hidden>
>> Date: Thu, 18 Jun 2015 10:31:20 +0200
>> Cc: emacs-devel <address@hidden>
>> This is a bit off-topic, but I'm wondering how people work with emails
>> in Emacs containing patches in the body of the email.
> With "M-|", of course.

Here's an alternative that might a bit more portable, emacs-centric and
user-friendly: just yank the patch region to a new buffer and `M-x
diff-mode' there. Then you can `C-c C-c` and `C-c C-a` at will,
applying, undoing and reading the differences as you go.

If you're lazy, don't mark and yank to a new buffer, just `M-x
diff-mode` whatever buffer you find the message in.

diff-mode will ask you to locate the file. Alternatively, use `M-x cd`
on that buffer to switch to the root of the project the patch pertains
too. I think I've seen diff-mode automagically guessing the file but I'm
too lazy right now to figure out and describe under which conditions
that happens, if at all.


reply via email to

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