[PATCH 0/2] emacs: Shortcut keys to saved searches
authorAustin Clements <amdragon@MIT.EDU>
Mon, 14 Jul 2014 16:02:13 +0000 (12:02 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:03:37 +0000 (10:03 -0800)
cb/c97bdce959236a3611c319387dea16c565818d [new file with mode: 0644]

diff --git a/cb/c97bdce959236a3611c319387dea16c565818d b/cb/c97bdce959236a3611c319387dea16c565818d
new file mode 100644 (file)
index 0000000..20012e5
--- /dev/null
@@ -0,0 +1,95 @@
+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 D7FEB431FBD\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 09:02:38 -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 k9DwWtF25BKf for <notmuch@notmuchmail.org>;\r
+       Mon, 14 Jul 2014 09:02:32 -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 0B794431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 14 Jul 2014 09:02:31 -0700 (PDT)\r
+X-AuditID: 12074423-f79bf6d000007580-ad-53c3ff1771ed\r
+Received: from mailhub-auth-1.mit.edu ( [18.9.21.35])\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 1F.21.30080.71FF3C35; Mon, 14 Jul 2014 12:02:31 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+       by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id s6EG2TeT030476; \r
+       Mon, 14 Jul 2014 12:02:30 -0400\r
+Received: from drake.dyndns.org\r
+       (static-155-212-141-65.mas.onecommunications.net [155.212.141.65])\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 s6EG2MCj026028\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+       Mon, 14 Jul 2014 12:02:28 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+       (envelope-from <amdragon@mit.edu>)\r
+       id 1X6ihp-0006r8-Lx; Mon, 14 Jul 2014 12:02:21 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/2] emacs: Shortcut keys to saved searches\r
+Date: Mon, 14 Jul 2014 12:02:13 -0400\r
+Message-Id: <1405353735-26244-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 2.0.0\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrGIsWRmVeSWpSXmKPExsUixCmqrCv+/3CwweZzMhY3WrsZLfbd2cJk\r
+       sXouj8X1mzOZHVg8dj3/y+Sxc9Zddo9nq24xe2w59J45gCWKyyYlNSezLLVI3y6BK2PztyWs\r
+       Bbc5Ko79+sLawLiJvYuRg0NCwERi63/fLkZOIFNM4sK99WxdjFwcQgKzmSSWfZvPDuFsZJRo\r
+       /XOUHaRKSOAGk8Sxr5YQibmMEt/39oEl2AQ0JLbtX84IYosISEvsvDubFcRmFrCV+NT6nwnE\r
+       Fhawlphw4g9YPYuAqsTfQ60sIFfwCjhIrF0ZCnGFnETDjU9sExh5FzAyrGKUTcmt0s1NzMwp\r
+       Tk3WLU5OzMtLLdI108vNLNFLTSndxAgKHnYX5R2Mfw4qHWIU4GBU4uGVeHc4WIg1say4MvcQ\r
+       oyQHk5Ior9AvoBBfUn5KZUZicUZ8UWlOavEhRgkOZiUR3qMfgHK8KYmVValF+TApaQ4WJXHe\r
+       t9ZWwUIC6YklqdmpqQWpRTBZGQ4OJQnetL9AjYJFqempFWmZOSUIaSYOTpDhPEDDo0FqeIsL\r
+       EnOLM9Mh8qcYFaXEeZv+ACUEQBIZpXlwvbDofsUoDvSKMG8cSDsPMDHAdb8CGswENLi8Bmxw\r
+       SSJCSqqBcX/L4Y9WbksaDp7YcdTfUN7J/Onqw3uPVpiZ28uWJU+6YvKvTXHCroQlXSdmWH8I\r
+       S0ppmLoscbeS3K0usy36vuU7J12+5b6s3XLV/onyFpECwvMOvS1f8r/BOrh8c8en29qzDtft\r
+       UFx6infe2WrTn9+NJTWkbhvc22766rXm5HuP57rzREm/Oq7EUpyRaKjFXFScCADPnnsfyQIA        AA==\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: Mon, 14 Jul 2014 16:02:39 -0000\r
+\r
+This series combines my original notmuch-go [1] with modifications\r
+from Mark [2] and with dme's notmuch-jump [3].\r
+\r
+Like dme's patch, this is bound to "j", is named notmuch-jump for\r
+consistency, and uses shortcut keys configured through\r
+notmuch-saved-searches.\r
+\r
+I simplified the original notmuch-go code using an idea from dme's\r
+patch to just show the bindings help in the minibuffer (rather than in\r
+a separate buffer).  Unlike dme's patch, mine always shows the\r
+bindings, rather than requiring the user to guess that "?" will do\r
+something helpful.  This seems strictly more friendly to inexperienced\r
+users and doesn't seem to have any real downside for experienced\r
+users.  My patch also goes to more effort to display these bindings\r
+nicely, since they're always visible, and suggests to the user what to\r
+do when no bindings are configured.\r
+\r
+[1] https://github.com/aclements/notmuch/blob/go-hack/emacs/notmuch-go.el\r
+[2] http://www.maths.qmul.ac.uk/~walters/tmp/notmuch-go.el and http://www.maths.qmul.ac.uk/~walters/tmp/0001-defcustom.patch\r
+[3] id:1399461694-25350-2-git-send-email-dme@dme.org\r
+\r