Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 5A37840D152 for ; Wed, 27 Oct 2010 10:27:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.2 X-Spam-Level: X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=unavailable Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HIdn2PwG5Z2S for ; Wed, 27 Oct 2010 10:27:18 -0700 (PDT) Received: from e23smtp03.au.ibm.com (e23smtp03.au.ibm.com [202.81.31.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0216C40D158 for ; Wed, 27 Oct 2010 10:27:08 -0700 (PDT) Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp03.au.ibm.com (8.14.4/8.13.1) with ESMTP id o9RHMwNf028760 for ; Thu, 28 Oct 2010 04:22:58 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9RHR1sU1077398 for ; Thu, 28 Oct 2010 04:27:01 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9RHR05c031157 for ; Thu, 28 Oct 2010 04:27:01 +1100 Received: from skywalker.in.ibm.com ([9.77.207.27]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o9RHQxk5031146; Thu, 28 Oct 2010 04:26:59 +1100 From: "Aneesh Kumar K.V" To: cworth@cworth.org Subject: [PATCH 1/3] emacs: Don't overload same-window-regexps Date: Wed, 27 Oct 2010 22:56:55 +0530 Message-Id: <1288200417-6584-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.1 Cc: "Aneesh Kumar K.V" , notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2010 17:27:18 -0000 From: Aneesh Kumar K.V Also add unset mail to the regexps. Recent emacs changes change the buffer name Signed-off-by: Aneesh Kumar K.V --- emacs/notmuch-mua.el | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el index 0ad079f..23ffd96 100644 --- a/emacs/notmuch-mua.el +++ b/emacs/notmuch-mua.el @@ -85,10 +85,13 @@ list." (setq headers (mail-header-extract))))) (forward-line 1) (setq body (buffer-substring (point) (point-max)))) - (let + (progn ;; Overlay the composition window on that being used to read ;; the original message. - ((same-window-regexps '("\\*mail .*"))) + (add-hook 'same-window-regexps + (purecopy "\\*unsent mail.*")) + (add-hook 'same-window-regexps + (purecopy "\\*mail .*")) (notmuch-mua-mail (mail-header 'to headers) (mail-header 'subject headers) (message-headers-to-generate headers t '(to subject)))) -- 1.7.1