1 Return-Path: <jani@nikula.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 1BD9B431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 10:09:06 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 9flM-YsPu7DS for <notmuch@notmuchmail.org>;
\r
16 Tue, 28 Oct 2014 10:08:58 -0700 (PDT)
\r
17 Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com
\r
18 [74.125.82.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 3B0F7431FAE for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 10:08:58 -0700
\r
22 Received: by mail-wg0-f47.google.com with SMTP id a1so1383157wgh.6
\r
23 for <notmuch@notmuchmail.org>; Tue, 28 Oct 2014 10:08:55 -0700 (PDT)
\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
25 d=1e100.net; s=20130820;
\r
26 h=x-gm-message-state:from:to:subject:in-reply-to:references
\r
27 :user-agent:date:message-id:mime-version:content-type;
\r
28 bh=ggwORSy8GlNEyGPevIRvfinFNScvO5GPo8s3tywb/XU=;
\r
29 b=eIUTb+gJvJCvhOUtZf7VVWOZLCdFmU4UgPTrUsP2akCChIC1Yx+N7TFFGi0rC+K42a
\r
30 C2uUWus48jfU6PcX3fXcuFIWx6ytREXXbtYgomla92VMIxDTA2kkOTwC6TC8AS1kz9Rl
\r
31 WWQajqmsVNQZx17eCEMgP2kY4qFiy6j4AnenDyN6bxteD3X4QreugDHQzQVQAm4O3Fec
\r
32 UNpnQThABMWlW2rw8fScwC6KFNO65A2ti1X+Ss6o3xy8O4Inlqg7HEN+gaEArnQ2gn70
\r
33 dEBP2r8/66c8R/vThKLNmTKe1r+J2yP0/XxZ2HYh9kpxs1fwobeCq/no767Xxs2wS9Da
\r
36 ALoCoQnLG2zpI4IASndKU2KGwH51Efc5/EQETDSnsdldqKDSeTgnc9a8MEikDWKYGRolYfpnSiOq
\r
37 X-Received: by 10.194.205.132 with SMTP id lg4mr5800017wjc.84.1414516135664;
\r
38 Tue, 28 Oct 2014 10:08:55 -0700 (PDT)
\r
39 Received: from localhost (dsl-hkibrasgw2-58c36d-48.dhcp.inet.fi.
\r
41 by mx.google.com with ESMTPSA id b6sm2834355wiy.22.2014.10.28.10.08.54
\r
42 for <multiple recipients>
\r
43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
44 Tue, 28 Oct 2014 10:08:54 -0700 (PDT)
\r
45 From: Jani Nikula <jani@nikula.org>
\r
46 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org
\r
47 Subject: Re: [RFC][PATCH v1] emacs: Improve the behaviour of the 'q' binding.
\r
48 In-Reply-To: <cunmw8wql0f.fsf@gargravarr.hh.sledj.net>
\r
49 References: <cunmw8wql0f.fsf@gargravarr.hh.sledj.net>
\r
50 User-Agent: Notmuch/0.18.2+148~g0318cd3 (http://notmuchmail.org) Emacs/24.3.1
\r
51 (x86_64-pc-linux-gnu)
\r
52 Date: Tue, 28 Oct 2014 19:08:53 +0200
\r
53 Message-ID: <87sii8nmu2.fsf@nikula.org>
\r
55 Content-Type: text/plain
\r
56 X-BeenThere: notmuch@notmuchmail.org
\r
57 X-Mailman-Version: 2.1.13
\r
59 List-Id: "Use and development of the notmuch mail system."
\r
60 <notmuch.notmuchmail.org>
\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
62 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
64 List-Post: <mailto:notmuch@notmuchmail.org>
\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
67 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
68 X-List-Received-Date: Tue, 28 Oct 2014 17:09:06 -0000
\r
70 On Thu, 16 Oct 2014, David Edmondson <dme@dme.org> wrote:
\r
71 > When a user hits 'q' in a notmuch buffer, kill the buffer only if
\r
72 > there are no other windows currently showing it.
\r
75 > This arose from a discussion in #notmuch. Please try it and see if you
\r
76 > like the new behaviour.
\r
78 Yes, very much, thank you. In most cases I want 'q' to only affect the
\r
79 current window. I like to be able to 'C-x 2' a search view, and have the
\r
80 two windows work more or less independently.
\r
87 > emacs/notmuch-lib.el | 8 ++++++--
\r
88 > 1 file changed, 6 insertions(+), 2 deletions(-)
\r
90 > diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
\r
91 > index 1e166c6..bc6f119 100644
\r
92 > --- a/emacs/notmuch-lib.el
\r
93 > +++ b/emacs/notmuch-lib.el
\r
94 > @@ -240,9 +240,13 @@ depending on the value of `notmuch-poll-script'."
\r
95 > (call-process notmuch-command nil nil nil "new")))
\r
97 > (defun notmuch-kill-this-buffer ()
\r
98 > - "Kill the current buffer."
\r
99 > + "Undisplay the current buffer."
\r
101 > - (kill-buffer (current-buffer)))
\r
102 > + ;; If more than one window is showing this buffer, bury rather than
\r
104 > + (if (> (length (get-buffer-window-list nil nil t)) 1)
\r
106 > + (kill-buffer)))
\r
108 > (defun notmuch-documentation-first-line (symbol)
\r
109 > "Return the first line of the documentation string for SYMBOL."
\r
113 > _______________________________________________
\r
114 > notmuch mailing list
\r
115 > notmuch@notmuchmail.org
\r
116 > http://notmuchmail.org/mailman/listinfo/notmuch
\r