1 Return-Path: <aneesh.kumar@linux.vnet.ibm.com>
\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 5A37840D152
\r
6 for <notmuch@notmuchmail.org>; Wed, 27 Oct 2010 10:27:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=unavailable
\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 HIdn2PwG5Z2S for <notmuch@notmuchmail.org>;
\r
16 Wed, 27 Oct 2010 10:27:18 -0700 (PDT)
\r
17 Received: from e23smtp03.au.ibm.com (e23smtp03.au.ibm.com [202.81.31.145])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id 0216C40D158
\r
21 for <notmuch@notmuchmail.org>; Wed, 27 Oct 2010 10:27:08 -0700 (PDT)
\r
22 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246])
\r
23 by e23smtp03.au.ibm.com (8.14.4/8.13.1) with ESMTP id o9RHMwNf028760
\r
24 for <notmuch@notmuchmail.org>; Thu, 28 Oct 2010 04:22:58 +1100
\r
25 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138])
\r
26 by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id
\r
28 for <notmuch@notmuchmail.org>; Thu, 28 Oct 2010 04:27:01 +1100
\r
29 Received: from d23av02.au.ibm.com (loopback [127.0.0.1])
\r
30 by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id
\r
32 for <notmuch@notmuchmail.org>; Thu, 28 Oct 2010 04:27:01 +1100
\r
33 Received: from skywalker.in.ibm.com ([9.77.207.27])
\r
34 by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id
\r
35 o9RHQxk5031146; Thu, 28 Oct 2010 04:26:59 +1100
\r
36 From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
\r
37 To: cworth@cworth.org
\r
38 Subject: [PATCH 1/3] emacs: Don't overload same-window-regexps
\r
39 Date: Wed, 27 Oct 2010 22:56:55 +0530
\r
40 Message-Id: <1288200417-6584-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>
\r
41 X-Mailer: git-send-email 1.7.1
\r
42 Cc: "Aneesh Kumar K.V" <aneesh.kumar@gmail.com>, notmuch@notmuchmail.org
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Wed, 27 Oct 2010 17:27:18 -0000
\r
57 From: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
\r
59 Also add unset mail to the regexps. Recent emacs changes change the buffer name
\r
61 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
\r
63 emacs/notmuch-mua.el | 7 +++++--
\r
64 1 files changed, 5 insertions(+), 2 deletions(-)
\r
66 diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
\r
67 index 0ad079f..23ffd96 100644
\r
68 --- a/emacs/notmuch-mua.el
\r
69 +++ b/emacs/notmuch-mua.el
\r
70 @@ -85,10 +85,13 @@ list."
\r
71 (setq headers (mail-header-extract)))))
\r
73 (setq body (buffer-substring (point) (point-max))))
\r
76 ;; Overlay the composition window on that being used to read
\r
77 ;; the original message.
\r
78 - ((same-window-regexps '("\\*mail .*")))
\r
79 + (add-hook 'same-window-regexps
\r
80 + (purecopy "\\*unsent mail.*"))
\r
81 + (add-hook 'same-window-regexps
\r
82 + (purecopy "\\*mail .*"))
\r
83 (notmuch-mua-mail (mail-header 'to headers)
\r
84 (mail-header 'subject headers)
\r
85 (message-headers-to-generate headers t '(to subject))))
\r