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