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