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 6CD16431FAF
\r
6 for <notmuch@notmuchmail.org>; Mon, 16 Jan 2012 09:03:53 -0800 (PST)
\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 nL4NPpax7VCL for <notmuch@notmuchmail.org>;
\r
16 Mon, 16 Jan 2012 09:03:52 -0800 (PST)
\r
17 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
18 [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id A7A6A431FAE
\r
21 for <notmuch@notmuchmail.org>; Mon, 16 Jan 2012 09:03:52 -0800 (PST)
\r
22 Received: by wibhr12 with SMTP id hr12so2636065wib.26
\r
23 for <notmuch@notmuchmail.org>; Mon, 16 Jan 2012 09:03:51 -0800 (PST)
\r
24 Received: by 10.180.73.72 with SMTP id j8mr10933009wiv.2.1326733431575;
\r
25 Mon, 16 Jan 2012 09:03:51 -0800 (PST)
\r
26 Received: from hotblack-desiato.hh.sledj.net
\r
27 (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])
\r
28 by mx.google.com with ESMTPS id m42sm4897478wbn.0.2012.01.16.09.03.49
\r
29 (version=TLSv1/SSLv3 cipher=OTHER);
\r
30 Mon, 16 Jan 2012 09:03:50 -0800 (PST)
\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)
\r
32 id 62A6AA0397; Mon, 16 Jan 2012 17:03:48 +0000 (GMT)
\r
33 To: Pieter Praet <pieter@praet.org>, notmuch <notmuch@notmuchmail.org>
\r
34 Subject: Re: [PATCH] v2 [RFC] emacs: merge overhauled
\r
35 `notmuch-cycle-notmuch-buffers' into `notmuch'
\r
36 In-Reply-To: <1326732415-21894-1-git-send-email-pieter@praet.org>
\r
37 References: <87r4yza95m.fsf@praet.org>
\r
38 <1326732415-21894-1-git-send-email-pieter@praet.org>
\r
39 User-Agent: Notmuch/0.11+64~g42e8f66 (http://notmuchmail.org) Emacs/24.0.92.1
\r
40 (x86_64-pc-linux-gnu)
\r
41 From: David Edmondson <dme@dme.org>
\r
42 Date: Mon, 16 Jan 2012 17:03:44 +0000
\r
43 Message-ID: <cun39bftw9b.fsf@hotblack-desiato.hh.sledj.net>
\r
45 Content-Type: multipart/signed; boundary="=-=-=";
\r
46 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Mon, 16 Jan 2012 17:03:53 -0000
\r
62 Content-Type: text/plain
\r
64 On Mon, 16 Jan 2012 17:46:55 +0100, Pieter Praet <pieter@praet.org> wrote:
\r
65 > Make `notmuch-cycle-notmuch-buffers' more Lispy and merge into `notmuch',
\r
66 > eliminating the need to hog yet another keybind.
\r
68 > diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
69 > index ef4dcc7..539b3a0 100644
\r
70 > --- a/emacs/notmuch.el
\r
71 > +++ b/emacs/notmuch.el
\r
72 > @@ -1067,7 +1067,20 @@ current search results AND that are tagged with the given tag."
\r
74 > "Run notmuch and display saved searches, known tags, etc."
\r
76 > - (notmuch-hello))
\r
77 > + (let* ((old-buffer (current-buffer))
\r
78 > + (interesting-buffers
\r
79 > + (delq nil (mapcar (lambda (b)
\r
80 > + (if (notmuch-interesting-buffer b) b))
\r
81 > + (buffer-list))))
\r
82 > + (next-buffer (first
\r
83 > + (delq nil (mapcar (lambda (b)
\r
84 > + (unless (eq old-buffer b) b))
\r
85 > + interesting-buffers)))))
\r
87 This feels _less_ lispy. Any occurrences of '(delq nil ...)' strike me
\r
88 as odd. What's wrong with '(loop ... collect ...)'?
\r
92 > + (switch-to-buffer next-buffer)
\r
93 > + (bury-buffer old-buffer))
\r
94 > + (notmuch-hello))))
\r
96 Integrating with `notmuch' is fine with me.
\r
99 Content-Type: application/pgp-signature
\r
101 -----BEGIN PGP SIGNATURE-----
\r
102 Version: GnuPG v1.4.11 (GNU/Linux)
\r
104 iEYEARECAAYFAk8UWHAACgkQaezQq/BJZRZ0nQCdETn7sd+T1fIcEMTq8GqiWhHW
\r
105 iqQAnRWL3N+PynOG+OiXEZTYXotRE49D
\r
107 -----END PGP SIGNATURE-----
\r