Re: [PATCH v2] emacs: Improved compatibility for window-body-width in Emacs < 24
[notmuch-archives.git] / 08 / 07217bb0bb2693fcd70d0ba62b3372594b3113
1 Return-Path: <tomi.ollila@iki.fi>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 9ED43431FC2\r
6         for <notmuch@notmuchmail.org>; Wed, 28 Aug 2013 10:32:08 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id Rw1oACyEY-Xy for <notmuch@notmuchmail.org>;\r
16         Wed, 28 Aug 2013 10:32:00 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 8C6EC431FBC\r
19         for <notmuch@notmuchmail.org>; Wed, 28 Aug 2013 10:32:00 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 5FB3F100030;\r
22         Wed, 28 Aug 2013 20:31:51 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Geoffrey Ferrari <geoffrey.ferrari@oriel.oxon.org>,\r
25  notmuch@notmuchmail.org\r
26 Subject: Re: [PATCH] emacs: bugfix notmuch-mua-reply when signature is present\r
27 In-Reply-To:\r
28  <1375961732-14327-1-git-send-email-geoffrey.ferrari@oriel.oxon.org>\r
29 References:\r
30  <1375961732-14327-1-git-send-email-geoffrey.ferrari@oriel.oxon.org>\r
31 User-Agent: Notmuch/0.16+42~g938dae6 (http://notmuchmail.org) Emacs/24.3.1\r
32         (x86_64-unknown-linux-gnu)\r
33 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
34         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
35         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
36 Date: Wed, 28 Aug 2013 20:31:51 +0300\r
37 Message-ID: <m2sixtyb5k.fsf@guru.guru-group.fi>\r
38 MIME-Version: 1.0\r
39 Content-Type: text/plain\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Wed, 28 Aug 2013 17:32:08 -0000\r
53 \r
54 On Thu, Aug 08 2013, Geoffrey Ferrari <geoffrey.ferrari@oriel.oxon.org> wrote:\r
55 \r
56 > From: "Geoffrey H. Ferrari" <geoffrey.ferrari@oriel.oxon.org>\r
57 >\r
58 > When composing a reply, notmuch-mua-reply tries to be smart and cite\r
59 > the original message by inserting it before the user signature, if\r
60 > one is present. However, the existing method of backward searching\r
61 > from the end of the buffer to find the signature separator and then\r
62 > moving one line up results in the original message being cited in\r
63 > the message headers. That's because at this point the message looks\r
64 > like this (with | representing point after searching for the\r
65 > signature separator):\r
66 >\r
67 > From: xxx\r
68 > To: xxx\r
69 > Subject: xxx\r
70 > --text follows this line--\r
71 > |--\r
72 > My fancy signature\r
73 \r
74 Now that I tested, (with ~/.signature), composing new mail starts with\r
75 \r
76 --8<---8<---8<---8<---8<---8<---8<---8<---8<-\r
77 From: Tomi Ollila <tomi.ollila@iki.fi>\r
78 To:\r
79 Subject: \r
80 Fcc: /home/too/mail/mails/sent\r
81 --text follows this line--\r
82 \r
83 --\r
84 signature\r
85 --8<---8<---8<---8<---8<---8<---8<---8<---8<-\r
86 \r
87 Notice the empty line between '--text follows this line--' and '--'\r
88 \r
89 In your example, the signature block is -- for some reason --\r
90 inserted without the empty line.\r
91 \r
92 > With this patch, a newline is opened instead, so that the orignal\r
93 > message is cited above the signature but still in the message text.\r
94 > ---\r
95 \r
96 \r
97 Tomi\r