[PATCH 3/3] NEWS: Insert markdown formatting commands
[notmuch-archives.git] / 2f / e446134a3654bc19a4d1da1325ea9158bb2121
1 Return-Path: <dme@dme.org>\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 B518F4196F0\r
6         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 04:19:04 -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: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\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 jWYotvtDpjkl for <notmuch@notmuchmail.org>;\r
16         Mon, 26 Apr 2010 04:19:04 -0700 (PDT)\r
17 Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com\r
18  [74.125.82.53])        by olra.theworths.org (Postfix) with ESMTP id C8C2D431FC1       for\r
19  <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 04:19:03 -0700 (PDT)\r
20 Received: by wwi18 with SMTP id 18so337711wwi.26\r
21         for <notmuch@notmuchmail.org>; Mon, 26 Apr 2010 04:19:02 -0700 (PDT)\r
22 Received: by 10.216.89.142 with SMTP id c14mr1184547wef.55.1272280742670;\r
23         Mon, 26 Apr 2010 04:19:02 -0700 (PDT)\r
24 Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com\r
25         [83.217.165.81])\r
26         by mx.google.com with ESMTPS id r29sm874236wbv.21.2010.04.26.04.19.01\r
27         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
28         Mon, 26 Apr 2010 04:19:01 -0700 (PDT)\r
29 Received: by ut.hh.sledj.net (Postfix, from userid 1000)\r
30         id 3DA6659413B; Mon, 26 Apr 2010 12:19:12 +0100 (BST)\r
31 From: David Edmondson <dme@dme.org>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH] emacs: Suppress window creation when replying\r
34 Date: Mon, 26 Apr 2010 12:19:10 +0100\r
35 Message-Id: <1272280750-3619-1-git-send-email-dme@dme.org>\r
36 X-Mailer: git-send-email 1.7.0\r
37 In-Reply-To: <87ljcchnfc.fsf@yoom.home.cworth.org>\r
38 References: <87ljcchnfc.fsf@yoom.home.cworth.org>\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Mon, 26 Apr 2010 11:19:04 -0000\r
52 \r
53 The buffer used to edit a reply should overlay the original\r
54 message. Encourage this by setting `same-window-regexps' locally.\r
55 ---\r
56  emacs/notmuch-mua.el |   16 ++++++++++------\r
57  1 files changed, 10 insertions(+), 6 deletions(-)\r
58 \r
59 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el\r
60 index 305275e..b69e31c 100644\r
61 --- a/emacs/notmuch-mua.el\r
62 +++ b/emacs/notmuch-mua.el\r
63 @@ -73,12 +73,16 @@\r
64               (setq headers (mail-header-extract)))))\r
65        (forward-line 1)\r
66        (setq body (buffer-substring (point) (point-max))))\r
67 -    (notmuch-mua-mail (mail-header 'to headers)\r
68 -                     (mail-header 'subject headers)\r
69 -                     (loop for header in headers\r
70 -                           if (not (or (eq 'to (car header))\r
71 -                                       (eq 'subject (car header))))\r
72 -                           collect header))\r
73 +    (let\r
74 +       ;; Overlay the composition window on that being used to read\r
75 +       ;; the original message.\r
76 +       ((same-window-regexps '("\\*mail .*")))\r
77 +      (notmuch-mua-mail (mail-header 'to headers)\r
78 +                       (mail-header 'subject headers)\r
79 +                       (loop for header in headers\r
80 +                             if (not (or (eq 'to (car header))\r
81 +                                         (eq 'subject (car header))))\r
82 +                             collect header)))\r
83      (message-sort-headers)\r
84      (message-hide-headers)\r
85      (save-excursion\r
86 -- \r
87 1.7.0\r
88 \r