From: joaotavora@gmail.com (João Távora)
To: Eli Zaretskii <eliz@gnu.org>
Cc: Nicolas Petton <nicolas@petton.fr>,
monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [OT] Working with patches inlined in emails
Date: Thu, 18 Jun 2015 10:27:43 +0100 [thread overview]
Message-ID: <jjbpp4t9xio.fsf@gmail.com> (raw)
In-Reply-To: <83lhfhl7pw.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Jun 2015 11:51:55 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Nicolas Petton <nicolas@petton.fr>
>> Date: Thu, 18 Jun 2015 10:31:20 +0200
>> Cc: emacs-devel <emacs-devel@gnu.org>
>>
>> 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.
João
next prev parent reply other threads:[~2015-06-18 9:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 10:47 Using gv in map and seq? Nicolas Petton
2015-06-15 12:41 ` Stefan Monnier
2015-06-15 13:48 ` Nicolas Petton
2015-06-15 16:30 ` Stefan Monnier
2015-06-16 1:45 ` Stefan Monnier
2015-06-16 7:13 ` Nicolas Petton
2015-06-16 20:35 ` Nicolas Petton
2015-06-17 0:41 ` Stefan Monnier
2015-06-17 12:58 ` Stefan Monnier
2015-06-17 14:40 ` Nicolas Petton
2015-06-17 17:39 ` Stefan Monnier
2015-06-18 19:59 ` Nicolas Petton
2015-06-19 2:52 ` Stefan Monnier
2015-06-16 21:28 ` Nicolas Petton
2015-06-18 8:31 ` [OT] Working with patches inlined in emails (was: Using gv in map and seq?) Nicolas Petton
2015-06-18 8:51 ` Eli Zaretskii
2015-06-18 9:27 ` João Távora [this message]
2015-06-18 9:38 ` Nicolas Petton
2015-06-18 9:45 ` Nicolas Petton
2015-06-18 8:58 ` [OT] Working with patches inlined in emails Andreas Schwab
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=jjbpp4t9xio.fsf@gmail.com \
--to=joaotavora@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=nicolas@petton.fr \
/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.