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 6B82C431FBC for ; Wed, 18 Jan 2012 10:33:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 yezTzjiQiprK for ; Wed, 18 Jan 2012 10:33:21 -0800 (PST) Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU [18.9.25.15]) by olra.theworths.org (Postfix) with ESMTP id BCBB2431FAE for ; Wed, 18 Jan 2012 10:33:21 -0800 (PST) X-AuditID: 1209190f-b7f8a6d000000914-4b-4f171071a289 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id 84.A3.02324.170171F4; Wed, 18 Jan 2012 13:33:21 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q0IIXKsm010416; Wed, 18 Jan 2012 13:33:20 -0500 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0IIXJke002090 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Wed, 18 Jan 2012 13:33:19 -0500 (EST) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1RnaJl-0001WK-0K; Wed, 18 Jan 2012 13:33:05 -0500 Date: Wed, 18 Jan 2012 13:33:04 -0500 From: Austin Clements To: David Bremner Subject: Re: RFC: tag macros Message-ID: <20120118183304.GC16740@mit.edu> References: <874nvtvzm5.fsf@convex-new.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874nvtvzm5.fsf@convex-new.cs.unb.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsUixG6nrlsoIO5v8Pg4u8WN1m5Gi+s3ZzI7 MHk8W3WL2WPLoffMAUxRXDYpqTmZZalF+nYJXBlb/mxkL7jNUXHqTBNzA+Nrti5GTg4JAROJ 7lVXWSBsMYkL99YDxbk4hAT2MUqceLSCBcLZwCixd8YkdgjnJJPEuVeTocqWMEpc+7+JFaSf RUBV4u+/LcwgNpuAhsS2/csZQWwRoPjVbZPB9jELaEls3fgBLC4sICPRe3gdmM0roCOx6+xJ sDlCAoYSUy7sZYKIC0qcnPmEBab3xr+XQHEOIFtaYvk/DpAwp4CRxLX2zWBjRAVUJKac3MY2 gVFoFpLuWUi6ZyF0L2BkXsUom5JbpZubmJlTnJqsW5ycmJeXWqRropebWaKXmlK6iREU2JyS /DsYvx1UOsQowMGoxMNbsEnUX4g1say4MvcQoyQHk5Iobyi/uL8QX1J+SmVGYnFGfFFpTmrx IUYJDmYlEd4vfEA53pTEyqrUonyYlDQHi5I4r5rWOz8hgfTEktTs1NSC1CKYrAwHh5IE71WQ oYJFqempFWmZOSUIaSYOTpDhPEDD9UFqeIsLEnOLM9Mh8qcYdTlOrr1yjlGIJS8/L1VKnHcn SJEASFFGaR7cHFhCesUoDvSWMO82kCoeYDKDm/QKaAkT0BKPJjGQJSWJCCmpBsauiyfTEln2 e070ij+grVXTzqogudfRpj9o1o4XypxV3pfyzXU32SRc/SF84P/3c9xFO97KtNwx6/pYnTFV J/vzltwc/gc92U6bW9usPln1FGjedvIVcHER4tR7YS/zgnfjhx8FzDMrNaZovFF9/JP1636B y+z2bIufGguxd6hN0ZNtSg1SUmIpzkg01GIuKk4EADOnLs8jAwAA Cc: Notmuch Mail 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:33:22 -0000 Quoth David Bremner on Jan 18 at 10:45 am: > > Hi All; > > Here is a very early stage proposal to provide tagging macros for > notmuch show mode. > > The idea is that user defines a mapping from single key to a sequence of > tagging operations. It might be nice if there as some kind of pop-up > menu, or at least a prompt, but I didn't do that so far. > > 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. > > As provided, the code should just paste into .emacs, and with a little > editing into notmuch-show.el. What about simply providing an API that takes a bunch of tag operations and applies them to the current thread/message/region? Maybe even the notmuch-show-add-or-del-tags that you have below (probably spruced up a bit). I feel like the type of people who are likely to use tag macros would also have the know-how to add a simple key binding of their own, assuming it *were* simple. Such an API would probably clean up some of the tagging code in notmuch-show, too.