Re: notmuch.el: controlling what does and doesn't get expanded in searches
[notmuch-archives.git] / 76 / e0aec051061bb923c8459bfdf6adf5d4e516c2
1 Return-Path: <jrollins@finestructure.net>\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 AC439431FAF\r
6         for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 10:50:56 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.29\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 b7duySdUOuc5 for <notmuch@notmuchmail.org>;\r
16         Wed, 18 Jan 2012 10:50:56 -0800 (PST)\r
17 Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
18         [131.215.239.19])\r
19         by olra.theworths.org (Postfix) with ESMTP id 23DD6431FAE\r
20         for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 10:50:56 -0800 (PST)\r
21 Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
22         by earth-doxen-postvirus (Postfix) with ESMTP id A632666E011C;\r
23         Wed, 18 Jan 2012 10:50:55 -0800 (PST)\r
24 X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
25 Received: from finestructure.net (gwave-212.ligo.caltech.edu\r
26  [131.215.114.212])     (Authenticated sender: jrollins)        by earth-doxen-submit\r
27  (Postfix) with ESMTP id BDC7B66E01AE;  Wed, 18 Jan 2012 10:50:52 -0800 (PST)\r
28 Received: by finestructure.net (Postfix, from userid 1000)\r
29         id 9AB45506; Wed, 18 Jan 2012 10:50:52 -0800 (PST)\r
30 From: Jameson Graef Rollins <jrollins@finestructure.net>\r
31 To: David Bremner <david@tethera.net>, Notmuch Mail <notmuch@notmuchmail.org>\r
32 Subject: Re: RFC: tag macros\r
33 In-Reply-To: <874nvtvzm5.fsf@convex-new.cs.unb.ca>\r
34 References: <874nvtvzm5.fsf@convex-new.cs.unb.ca>\r
35 User-Agent: Notmuch/0.11+63~g6965a07 (http://notmuchmail.org) Emacs/23.3.1\r
36         (x86_64-pc-linux-gnu)\r
37 Date: Wed, 18 Jan 2012 10:50:50 -0800\r
38 Message-ID: <87vco8q1yt.fsf@servo.finestructure.net>\r
39 MIME-Version: 1.0\r
40 Content-Type: multipart/signed; boundary="=-=-=";\r
41         micalg=pgp-sha256; protocol="application/pgp-signature"\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Wed, 18 Jan 2012 18:50:56 -0000\r
55 \r
56 --=-=-=\r
57 \r
58 On Wed, 18 Jan 2012 10:45:06 -0400, David Bremner <david@tethera.net> wrote:\r
59 > The advantage of this rather than just writing lots of little lambdas is\r
60 > that it combines adding and deleting, and it could be done via\r
61 > customize.\r
62 \r
63 Is all of this really easier than just adding the following to your\r
64 .emacs?:\r
65 \r
66 (define-key notmuch-search-mode-map "o"\r
67   (lambda ()\r
68     (interactive)\r
69     (notmuch-show-add-tag "notmuch::patch")\r
70     (notmuch-show-add-tag "notmuch::obsolete")\r
71     (notmuch-show-remove-tag "notmuch::needs-review")))\r
72 \r
73 That seems really simple to me, and doesn't require us to support a\r
74 bunch of code to do complicated customization stuff.\r
75 \r
76 Rather than have protracted conversations about key bindings or continue\r
77 to make more complicated configuration setups, I would like to push the\r
78 idea that we support a bunch of nice simple functions to do common,\r
79 useful operations (like tagging and navigation), and let users build\r
80 macros as they see fit.  I think this is a lot more flexible, and takes\r
81 a lot of the maintenance burden off of us.\r
82 \r
83 I've been wanting to put together a wiki page that lists all the useful\r
84 functions and has examples of how to put them together into useful\r
85 functions.\r
86 \r
87 jamie.\r
88 \r
89 --=-=-=\r
90 Content-Type: application/pgp-signature\r
91 \r
92 -----BEGIN PGP SIGNATURE-----\r
93 Version: GnuPG v1.4.11 (GNU/Linux)\r
94 \r
95 iQIcBAEBCAAGBQJPFxSKAAoJEO00zqvie6q8zIgP/RQlmiTSXCtnajdR/OvWoHjv\r
96 GA8XS3GHWgfIk7UXm4M4h580mxKi4qWitgMP1qkost9oZGU5Vpf/1uR6gOWhCyEz\r
97 H9eQfY0CtMgSywQJZ/RCceYQOCaygy8BTtVD+KZJyBEbIn4jgVRW/FLwn5kSqaBb\r
98 xEEkEkfWTIpOcuF5qCoW1W3OF7rw1MxVBNtB1n8wptNmkjl9EI42P/W3SKfB8LpZ\r
99 3ZwBSNHpB4tuW0S/70/q9jY8X/H7rM38gp09GfcIWL+aVjq8nEe9pQqcTQ8JVIoN\r
100 FAYHGcrN2sBSPqmJgrebI2k9IEJvn3eaFm5DJ/1E83V3Ww66kjNyXwaDKCe6woVi\r
101 w2wZ4/F+4gesxAiPbh7gm/oLCfqDxfe9esx9SNFgZAkkSw2RgC3ZiQFrqNVMPqLP\r
102 1YXbSM+fi9QrxzoL9VO7lCYrlLHCxk92ftjUVFgylNK04JLO+nbGs/pXDy8Z2qlN\r
103 jUJvgboD+T113hoVRPgRoaaZKnwnHSFY/4HoNCIluFf+1G8cK/jG/i3Kgva1I8Tl\r
104 xfoM6Weyn4wx/0ANsKUgoNjMD5XeUFaUgHmHg0BkvhONlDWsA5ZyhaWT3xs7zhGJ\r
105 9gwRwQlASJGef2Pe6qsYwSu6jQfib6KmsQuxXhQZJCgU4R3J/E2tsFtKgr2WuWiG\r
106 3Ec9+/bvJmBz7KgTNzth\r
107 =GOdA\r
108 -----END PGP SIGNATURE-----\r
109 --=-=-=--\r