1 Return-Path: <amdragon@mit.edu>
\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 6B82C431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 10:33:22 -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 yezTzjiQiprK for <notmuch@notmuchmail.org>;
\r
16 Wed, 18 Jan 2012 10:33:21 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id BCBB2431FAE
\r
20 for <notmuch@notmuchmail.org>; Wed, 18 Jan 2012 10:33:21 -0800 (PST)
\r
21 X-AuditID: 1209190f-b7f8a6d000000914-4b-4f171071a289
\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])
\r
23 by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id 84.A3.02324.170171F4; Wed, 18 Jan 2012 13:33:21 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q0IIXKsm010416;
\r
27 Wed, 18 Jan 2012 13:33:20 -0500
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q0IIXJke002090
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Wed, 18 Jan 2012 13:33:19 -0500 (EST)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amdragon@mit.edu>)
\r
36 id 1RnaJl-0001WK-0K; Wed, 18 Jan 2012 13:33:05 -0500
\r
37 Date: Wed, 18 Jan 2012 13:33:04 -0500
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: David Bremner <david@tethera.net>
\r
40 Subject: Re: RFC: tag macros
\r
41 Message-ID: <20120118183304.GC16740@mit.edu>
\r
42 References: <874nvtvzm5.fsf@convex-new.cs.unb.ca>
\r
44 Content-Type: text/plain; charset=us-ascii
\r
45 Content-Disposition: inline
\r
46 In-Reply-To: <874nvtvzm5.fsf@convex-new.cs.unb.ca>
\r
47 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
48 X-Brightmail-Tracker:
\r
49 H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsUixG6nrlsoIO5v8Pg4u8WN1m5Gi+s3ZzI7
\r
50 MHk8W3WL2WPLoffMAUxRXDYpqTmZZalF+nYJXBlb/mxkL7jNUXHqTBNzA+Nrti5GTg4JAROJ
\r
51 7lVXWSBsMYkL99YDxbk4hAT2MUqceLSCBcLZwCixd8YkdgjnJJPEuVeTocqWMEpc+7+JFaSf
\r
52 RUBV4u+/LcwgNpuAhsS2/csZQWwRoPjVbZPB9jELaEls3fgBLC4sICPRe3gdmM0roCOx6+xJ
\r
53 sDlCAoYSUy7sZYKIC0qcnPmEBab3xr+XQHEOIFtaYvk/DpAwp4CRxLX2zWBjRAVUJKac3MY2
\r
54 gVFoFpLuWUi6ZyF0L2BkXsUom5JbpZubmJlTnJqsW5ycmJeXWqRropebWaKXmlK6iREU2JyS
\r
55 /DsYvx1UOsQowMGoxMNbsEnUX4g1say4MvcQoyQHk5Iobyi/uL8QX1J+SmVGYnFGfFFpTmrx
\r
56 IUYJDmYlEd4vfEA53pTEyqrUonyYlDQHi5I4r5rWOz8hgfTEktTs1NSC1CKYrAwHh5IE71WQ
\r
57 oYJFqempFWmZOSUIaSYOTpDhPEDD9UFqeIsLEnOLM9Mh8qcYdTlOrr1yjlGIJS8/L1VKnHcn
\r
58 SJEASFFGaR7cHFhCesUoDvSWMO82kCoeYDKDm/QKaAkT0BKPJjGQJSWJCCmpBsauiyfTEln2
\r
59 e070ij+grVXTzqogudfRpj9o1o4XypxV3pfyzXU32SRc/SF84P/3c9xFO97KtNwx6/pYnTFV
\r
60 J/vzltwc/gc92U6bW9usPln1FGjedvIVcHER4tR7YS/zgnfjhx8FzDMrNaZovFF9/JP1636B
\r
61 y+z2bIufGguxd6hN0ZNtSg1SUmIpzkg01GIuKk4EADOnLs8jAwAA
\r
62 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
63 X-BeenThere: notmuch@notmuchmail.org
\r
64 X-Mailman-Version: 2.1.13
\r
66 List-Id: "Use and development of the notmuch mail system."
\r
67 <notmuch.notmuchmail.org>
\r
68 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
69 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
70 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
71 List-Post: <mailto:notmuch@notmuchmail.org>
\r
72 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
73 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
74 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
75 X-List-Received-Date: Wed, 18 Jan 2012 18:33:22 -0000
\r
77 Quoth David Bremner on Jan 18 at 10:45 am:
\r
81 > Here is a very early stage proposal to provide tagging macros for
\r
82 > notmuch show mode.
\r
84 > The idea is that user defines a mapping from single key to a sequence of
\r
85 > tagging operations. It might be nice if there as some kind of pop-up
\r
86 > menu, or at least a prompt, but I didn't do that so far.
\r
88 > The advantage of this rather than just writing lots of little lambdas is
\r
89 > that it combines adding and deleting, and it could be done via
\r
92 > As provided, the code should just paste into .emacs, and with a little
\r
93 > editing into notmuch-show.el.
\r
95 What about simply providing an API that takes a bunch of tag
\r
96 operations and applies them to the current thread/message/region?
\r
97 Maybe even the notmuch-show-add-or-del-tags that you have below
\r
98 (probably spruced up a bit). I feel like the type of people who are
\r
99 likely to use tag macros would also have the know-how to add a simple
\r
100 key binding of their own, assuming it *were* simple. Such an API
\r
101 would probably clean up some of the tagging code in notmuch-show, too.
\r