From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [OT] Working with patches inlined in emails (was: Using gv in map and seq?) Date: Thu, 18 Jun 2015 11:51:55 +0300 Message-ID: <83lhfhl7pw.fsf@gnu.org> References: <87egldxn7p.fsf@petton.fr> <878ublkrqe.fsf@petton.fr> <87zj3x5sfb.fsf@petton.fr> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1434617960 17354 80.91.229.3 (18 Jun 2015 08:59:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2015 08:59:20 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 18 10:59:14 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z5VeJ-000562-2A for ged-emacs-devel@m.gmane.org; Thu, 18 Jun 2015 10:58:15 +0200 Original-Received: from localhost ([::1]:51076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5VeI-0007CD-K3 for ged-emacs-devel@m.gmane.org; Thu, 18 Jun 2015 04:58:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5VYP-0007SJ-I1 for emacs-devel@gnu.org; Thu, 18 Jun 2015 04:52:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5VYL-00073I-3Q for emacs-devel@gnu.org; Thu, 18 Jun 2015 04:52:09 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:42483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5VYK-00072y-Sh for emacs-devel@gnu.org; Thu, 18 Jun 2015 04:52:05 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NQ400200TXXOK00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Thu, 18 Jun 2015 11:52:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQ4002PLTYQJK70@a-mtaout23.012.net.il>; Thu, 18 Jun 2015 11:52:03 +0300 (IDT) In-reply-to: <87zj3x5sfb.fsf@petton.fr> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187275 Archived-At: > From: Nicolas Petton > Date: Thu, 18 Jun 2015 10:31:20 +0200 > Cc: emacs-devel > > 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. > With patches sent as attachments it's straightforward, but for example > here for this patch I had to yank the content in a new buffer, trim the > spaces at the beginning of each line, etc. which is clearly not > efficient (I use notmuch). I don't understand why you needed to trim some spaces, I don't see any extra spaces in the mail Stefan sent. Maybe your MUA needs to be upgraded or changed? Anyway, 'patch' has a switch to ignore whitespace, which helps in some situations.