[PATCH v2] emacs: Add support for saved search accelerator keys
authorDavid Edmondson <dme@dme.org>
Wed, 7 May 2014 11:21:33 +0000 (12:21 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:02:17 +0000 (10:02 -0800)
46/22aba54f052b163e9ae8f5ae02407b6251cab3 [new file with mode: 0644]

diff --git a/46/22aba54f052b163e9ae8f5ae02407b6251cab3 b/46/22aba54f052b163e9ae8f5ae02407b6251cab3
new file mode 100644 (file)
index 0000000..a6544f4
--- /dev/null
@@ -0,0 +1,93 @@
+Return-Path: <dme@dme.org>\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 89FD2431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  7 May 2014 04:21:46 -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 kvM6e512cduw for <notmuch@notmuchmail.org>;\r
+       Wed,  7 May 2014 04:21:42 -0700 (PDT)\r
+Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com\r
+       [209.85.212.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 1BAA0431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  7 May 2014 04:21:38 -0700 (PDT)\r
+Received: by mail-wi0-f173.google.com with SMTP id bs8so8895624wib.6\r
+       for <notmuch@notmuchmail.org>; Wed, 07 May 2014 04:21:37 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\r
+       :references;\r
+       bh=aPVBKqnG7VgT4YQJA3l7fmRBlY6fTWnSUdXXk93hZ3k=;\r
+       b=OGeHRlNwa9J0NLCkAcEziqEMGJ1KRl24Xgm+xWfcTpBA1Zdwjzak9l49yao4PSYL0Y\r
+       unK8NQF9oD1ItUP3SFSeaaIBZQVaB6Uq+xM2qLU1l4Wb5qpFGhIJuIlrKQkpgtNvLqKM\r
+       jee/KSYqoIfiGG4VryTXiZWjiNpWI3vIXBRCSPRtERkYDGfdQYD2BtlR6+BQU0IuFVUI\r
+       6RBDHefRmGkX5tf8hJSIXqU3SQqiz3uDG4HIkrQxK3e/rEysrZw6tCI6gWlHedQ4SZ7p\r
+       txW5zPun1MNvwOktbuuniLjQd2Qfde0o0PJsgjjaKgoTizzLg1jruAW31a1B1c3/alT4\r
+       a4bA==\r
+X-Gm-Message-State:\r
+ ALoCoQnlXeb2oe1kpJO5auBEV2LvozAGSBdRun46QMTRUU+v2XYWzAx63LNhQtR1IcbHiL/nQzcV\r
+X-Received: by 10.180.206.205 with SMTP id lq13mr7261043wic.11.1399461697808; \r
+       Wed, 07 May 2014 04:21:37 -0700 (PDT)\r
+Received: from hotblack-desiato.hh.sledj.net (disaster-area.hh.sledj.net.\r
+       [81.149.164.25]) by mx.google.com with ESMTPSA id\r
+       ft8sm30976118wib.13.2014.05.07.04.21.36 for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Wed, 07 May 2014 04:21:36 -0700 (PDT)\r
+Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
+       id CF43D1088C4; Wed,  7 May 2014 12:21:34 +0100 (BST)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2] emacs: Add support for saved search accelerator keys\r
+Date: Wed,  7 May 2014 12:21:33 +0100\r
+Message-Id: <1399461694-25350-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 2.0.0.rc0\r
+In-Reply-To: <1399385776-19918-1-git-send-email-dme@dme.org>\r
+References: <1399385776-19918-1-git-send-email-dme@dme.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: Wed, 07 May 2014 11:21:46 -0000\r
+\r
+emacs: Add support for saved search accelerator keys\r
+\r
+This arose out a conversation in #notmuch and Mark's patch to extend\r
+the saved search custom specification based on requirements for an\r
+external package (Austin's notmuch-go.el).\r
+\r
+v2:\r
+- Comments from Mark Walters:\r
+  - Use `notmuch-saved-search-get'.\r
+  - Use key-sequence rather than string in the custom definition.\r
+  - Add a ? binding to display the accelerators.\r
+  - Use the minibuffer-local-map as parent for the new keymap.\r
+  - Fix external declarations.\r
+  - Remove the display of the accelerators in notmuch-hello.\r
+\r
+\r
+David Edmondson (1):\r
+  emacs: Add support for saved search accelerators\r
+\r
+ emacs/notmuch-hello.el |  5 ++++-\r
+ emacs/notmuch-lib.el   | 46 ++++++++++++++++++++++++++++++++++++++++++++++\r
+ 2 files changed, 50 insertions(+), 1 deletion(-)\r
+\r
+-- \r
+2.0.0.rc0\r
+\r