Re: RFC: tag macros
authorJameson Graef Rollins <jrollins@finestructure.net>
Wed, 18 Jan 2012 18:50:50 +0000 (10:50 +1600)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:42:37 +0000 (09:42 -0800)
76/e0aec051061bb923c8459bfdf6adf5d4e516c2 [new file with mode: 0644]

diff --git a/76/e0aec051061bb923c8459bfdf6adf5d4e516c2 b/76/e0aec051061bb923c8459bfdf6adf5d4e516c2
new file mode 100644 (file)
index 0000000..8aa92ef
--- /dev/null
@@ -0,0 +1,109 @@
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id AC439431FAF\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 10:50:56 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id b7duySdUOuc5 for <notmuch@notmuchmail.org>;\r
+       Wed, 18 Jan 2012 10:50:56 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+       [131.215.239.19])\r
+       by olra.theworths.org (Postfix) with ESMTP id 23DD6431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 10:50:56 -0800 (PST)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+       by earth-doxen-postvirus (Postfix) with ESMTP id A632666E011C;\r
+       Wed, 18 Jan 2012 10:50:55 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (gwave-212.ligo.caltech.edu\r
+ [131.215.114.212])    (Authenticated sender: jrollins)        by earth-doxen-submit\r
+ (Postfix) with ESMTP id BDC7B66E01AE; Wed, 18 Jan 2012 10:50:52 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+       id 9AB45506; Wed, 18 Jan 2012 10:50:52 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: David Bremner <david@tethera.net>, Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: RFC: tag macros\r
+In-Reply-To: <874nvtvzm5.fsf@convex-new.cs.unb.ca>\r
+References: <874nvtvzm5.fsf@convex-new.cs.unb.ca>\r
+User-Agent: Notmuch/0.11+63~g6965a07 (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Wed, 18 Jan 2012 10:50:50 -0800\r
+Message-ID: <87vco8q1yt.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 18 Jan 2012 18:50:56 -0000\r
+\r
+--=-=-=\r
+\r
+On Wed, 18 Jan 2012 10:45:06 -0400, David Bremner <david@tethera.net> wrote:\r
+> The advantage of this rather than just writing lots of little lambdas is\r
+> that it combines adding and deleting, and it could be done via\r
+> customize.\r
+\r
+Is all of this really easier than just adding the following to your\r
+.emacs?:\r
+\r
+(define-key notmuch-search-mode-map "o"\r
+  (lambda ()\r
+    (interactive)\r
+    (notmuch-show-add-tag "notmuch::patch")\r
+    (notmuch-show-add-tag "notmuch::obsolete")\r
+    (notmuch-show-remove-tag "notmuch::needs-review")))\r
+\r
+That seems really simple to me, and doesn't require us to support a\r
+bunch of code to do complicated customization stuff.\r
+\r
+Rather than have protracted conversations about key bindings or continue\r
+to make more complicated configuration setups, I would like to push the\r
+idea that we support a bunch of nice simple functions to do common,\r
+useful operations (like tagging and navigation), and let users build\r
+macros as they see fit.  I think this is a lot more flexible, and takes\r
+a lot of the maintenance burden off of us.\r
+\r
+I've been wanting to put together a wiki page that lists all the useful\r
+functions and has examples of how to put them together into useful\r
+functions.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJPFxSKAAoJEO00zqvie6q8zIgP/RQlmiTSXCtnajdR/OvWoHjv\r
+GA8XS3GHWgfIk7UXm4M4h580mxKi4qWitgMP1qkost9oZGU5Vpf/1uR6gOWhCyEz\r
+H9eQfY0CtMgSywQJZ/RCceYQOCaygy8BTtVD+KZJyBEbIn4jgVRW/FLwn5kSqaBb\r
+xEEkEkfWTIpOcuF5qCoW1W3OF7rw1MxVBNtB1n8wptNmkjl9EI42P/W3SKfB8LpZ\r
+3ZwBSNHpB4tuW0S/70/q9jY8X/H7rM38gp09GfcIWL+aVjq8nEe9pQqcTQ8JVIoN\r
+FAYHGcrN2sBSPqmJgrebI2k9IEJvn3eaFm5DJ/1E83V3Ww66kjNyXwaDKCe6woVi\r
+w2wZ4/F+4gesxAiPbh7gm/oLCfqDxfe9esx9SNFgZAkkSw2RgC3ZiQFrqNVMPqLP\r
+1YXbSM+fi9QrxzoL9VO7lCYrlLHCxk92ftjUVFgylNK04JLO+nbGs/pXDy8Z2qlN\r
+jUJvgboD+T113hoVRPgRoaaZKnwnHSFY/4HoNCIluFf+1G8cK/jG/i3Kgva1I8Tl\r
+xfoM6Weyn4wx/0ANsKUgoNjMD5XeUFaUgHmHg0BkvhONlDWsA5ZyhaWT3xs7zhGJ\r
+9gwRwQlASJGef2Pe6qsYwSu6jQfib6KmsQuxXhQZJCgU4R3J/E2tsFtKgr2WuWiG\r
+3Ec9+/bvJmBz7KgTNzth\r
+=GOdA\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r