Re: [PATCH v2] emacs: Add support for saved search accelerators
authorAustin Clements <amdragon@MIT.EDU>
Sun, 13 Jul 2014 03:50:09 +0000 (23:50 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:03:32 +0000 (10:03 -0800)
64/f62b43082773579dda418e1318446faee94794 [new file with mode: 0644]

diff --git a/64/f62b43082773579dda418e1318446faee94794 b/64/f62b43082773579dda418e1318446faee94794
new file mode 100644 (file)
index 0000000..7a3111e
--- /dev/null
@@ -0,0 +1,111 @@
+Return-Path: <amdragon@mit.edu>\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 0E746431FC7\r
+       for <notmuch@notmuchmail.org>; Sat, 12 Jul 2014 20:50:23 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 zwf9KS8-PtmG for <notmuch@notmuchmail.org>;\r
+       Sat, 12 Jul 2014 20:50:15 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-6.mit.edu (dmz-mailsec-scanner-6.mit.edu\r
+       [18.7.68.35])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id ACA0E431FBD\r
+       for <notmuch@notmuchmail.org>; Sat, 12 Jul 2014 20:50:15 -0700 (PDT)\r
+X-AuditID: 12074423-f79bf6d000007580-98-53c201f7b8e4\r
+Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])\r
+       (using TLS with cipher AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 81.E2.30080.7F102C35; Sat, 12 Jul 2014 23:50:15 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id s6D3oDMd015925; \r
+       Sat, 12 Jul 2014 23:50:14 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s6D3oBO6023083\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+       Sat, 12 Jul 2014 23:50:13 -0400\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1X6Ani-0005tR-Io; Sat, 12 Jul 2014 23:50:11 -0400\r
+Date: Sat, 12 Jul 2014 23:50:09 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: David Bremner <david@tethera.net>\r
+Subject: Re: [PATCH v2] emacs: Add support for saved search accelerators\r
+Message-ID: <20140713035009.GZ4660@mit.edu>\r
+References: <1399385776-19918-1-git-send-email-dme@dme.org>\r
+       <1399461694-25350-1-git-send-email-dme@dme.org>\r
+       <1399461694-25350-2-git-send-email-dme@dme.org>\r
+       <87ion2gyqo.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Disposition: inline\r
+In-Reply-To: <87ion2gyqo.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Mutt/1.5.21 (2010-09-15)\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IRYrdT0f3OeCjY4N4+Tosbrd2MFvvubGGy\r
+       uH5zJrMDs8eu53+ZPJ6tusXsseXQe+YA5igum5TUnMyy1CJ9uwSujK7m6cwFG7kqZn/7w9bA\r
+       uJqji5GTQ0LAROLvqgksELaYxIV769m6GLk4hARmM0msP/uLHcLZyChx7sYSFgjnNJPEhOXz\r
+       mCCcJYwSv+auYexi5OBgEVCVuDRdHWQUm4CGxLb9yxlBbBGg8NVtk9lAbGYBK4mLz/awg9jC\r
+       Ah4Sz5v2sIK08gpoS3xcxAgx8jijxKev08B6eQUEJU7OfMIC0aslcePfSyaQemYBaYnl/8A+\r
+       4BQwkmi6+48ZxBYVUJGYcnIb2wRGoVlIumch6Z6F0L2AkXkVo2xKbpVubmJmTnFqsm5xcmJe\r
+       XmqRrplebmaJXmpK6SZGcKi7KO9g/HNQ6RCjAAejEg/vg/UHg4VYE8uKK3MPMUpyMCmJ8mp+\r
+       AQrxJeWnVGYkFmfEF5XmpBYfYpTgYFYS4RWUBsrxpiRWVqUW5cOkpDlYlMR531pbBQsJpCeW\r
+       pGanphakFsFkZTg4lCR4/zAcChYSLEpNT61Iy8wpQUgzcXCCDOcBGQ5MDUK8xQWJucWZ6RD5\r
+       U4yKUuK8s0CaBUASGaV5cL2wVPSKURzoFWHetyBVPMA0Btf9CmgwE9Dg7f37QQaXJCKkpBoY\r
+       C2p4xB8/47ULm2Zx3ivnfHQdr/0Mn7RkxQ+a+7dtj+iRyFBjN2nd2TDV8pHh9YXiX977fV/d\r
+       fFBN9euFgECX6+k7nIIXTykQsbLYeHTCNDeDuWXmcy/ZienHnrBxX+bxj9d8bW62RJDq8QSz\r
+       Ji11oQL9u60T8+c3FM9kX6+ltYs1ruaY/0slluKMREMt5qLiRACbwu1IIAMAAA==\r
+Cc: notmuch@notmuchmail.org\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: Sun, 13 Jul 2014 03:50:23 -0000\r
+\r
+Quoth David Bremner on Jul 12 at  4:31 pm:\r
+> David Edmondson <dme@dme.org> writes:\r
+> \r
+> > Extended the saved search definition to allow the inclusion of an\r
+> > accelerator key for the search. Bind 'j' in the common mode map as a\r
+> > leader for such accelerator keys.\r
+> \r
+> I was trying this out without configuring any accelerators and it seemed\r
+> a bit unfriendly. After hitting 'j' I more or less get stuck until I hit\r
+> C-g. Even hitting ? did not produce any output. I think at minimum the\r
+> user who hits j by mistake should not get stuck in a state she needs to\r
+> C-g out of.\r
+\r
+Have you tried notmuch-go?\r
+\r
+  https://github.com/aclements/notmuch/blob/go-hack/emacs/notmuch-go.el\r
+\r
+Once you load it, it's bound to 'g' everywhere.  It shows all of the\r
+available bindings/searches above the minibuffer as soon as you hit\r
+'g'.  I've been using notmuch-go happily for months (it's completely\r
+supplanted hello for me).\r
+\r
+The right answer might be something between notmuch-go and dme's\r
+patch.  Currently notmuch-go uses a hard-coded set of searches, while\r
+dme's patch derives them from the saved searches.  notmuch-go may also\r
+be more complicated than necessary; I had originally intended to do\r
+some other things with it that never materialized and, now that I've\r
+used it, I don't think they're necessary.\r