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 375DA429E5F
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 00:07:07 -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 yC51A6MziIm7 for <notmuch@notmuchmail.org>;
\r
16 Wed, 18 Jan 2012 00:07:06 -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 64C94429E27
\r
21 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 00:07:06 -0800 (PST)
\r
22 Received: by wibhr12 with SMTP id hr12so4192303wib.26
\r
23 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 00:07:05 -0800 (PST)
\r
24 Received: by 10.180.106.130 with SMTP id gu2mr34552169wib.6.1326874025250;
\r
25 Wed, 18 Jan 2012 00:07:05 -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 r1sm21063112wia.8.2012.01.18.00.07.03
\r
29 (version=TLSv1/SSLv3 cipher=OTHER);
\r
30 Wed, 18 Jan 2012 00:07:04 -0800 (PST)
\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)
\r
32 id 17AB3A0397; Wed, 18 Jan 2012 08:07:02 +0000 (GMT)
\r
33 To: Jameson Graef Rollins <jrollins@finestructure.net>,
\r
34 Notmuch Mail <notmuch@notmuchmail.org>
\r
35 Subject: Re: [PATCH 1/6] emacs: break up notmuch-show-archive-thread-internal
\r
36 into two generally useful functions
\r
37 In-Reply-To: <1326823531-14549-1-git-send-email-jrollins@finestructure.net>
\r
38 References: <871uqy19yo.fsf@servo.finestructure.net>
\r
39 <1326823531-14549-1-git-send-email-jrollins@finestructure.net>
\r
40 User-Agent: Notmuch/0.11+64~g42e8f66 (http://notmuchmail.org) Emacs/24.0.92.1
\r
41 (x86_64-pc-linux-gnu)
\r
42 From: David Edmondson <dme@dme.org>
\r
43 Date: Wed, 18 Jan 2012 08:06:58 +0000
\r
44 Message-ID: <cunobu1o2n1.fsf@hotblack-desiato.hh.sledj.net>
\r
46 Content-Type: multipart/signed; boundary="=-=-=";
\r
47 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Wed, 18 Jan 2012 08:07:07 -0000
\r
63 Content-Type: text/plain
\r
65 Very happy with the overall ideas.
\r
67 On Tue, 17 Jan 2012 10:05:26 -0800, Jameson Graef Rollins <jrollins@finestructure.net> wrote:
\r
68 > -(defun notmuch-show-archive-thread-internal (show-next)
\r
69 > - ;; Remove the tag from the current set of messages.
\r
70 > +(defun notmuch-show-tag-thread-internal (tag &optional remove)
\r
71 > + ;; Add tag to the current set of messages. If the remove switch is
\r
72 > + ;; given, tags will be removed instead of added.
\r
73 > (goto-char (point-min))
\r
74 > - (loop do (notmuch-show-remove-tag "inbox")
\r
75 > - until (not (notmuch-show-goto-message-next)))
\r
76 > - ;; Move to the next item in the search results, if any.
\r
77 > + (let ((tag-function 'notmuch-show-add-tag))
\r
79 > + (setq tag-function 'notmuch-show-remove-tag))
\r
81 This seems odd. How about:
\r
83 (let ((tag-function (if remove 'notmuch-show-remove-tag 'notmuch-show-add-tag)))
\r
86 > + (loop do (funcall tag-function tag)
\r
87 > + until (not (notmuch-show-goto-message-next)))))
\r
92 Content-Type: application/pgp-signature
\r
94 -----BEGIN PGP SIGNATURE-----
\r
95 Version: GnuPG v1.4.11 (GNU/Linux)
\r
97 iEYEARECAAYFAk8WfaIACgkQaezQq/BJZRY0YQCeMjm077EtqDUSByF/NmkMPSFs
\r
98 yXQAmQH9R9iB2bV4S8STnd8z985P9qDk
\r
100 -----END PGP SIGNATURE-----
\r