From cbf6b1be3a511a47a80077605a5198959530713d Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Wed, 25 Apr 2012 18:12:34 +0100 Subject: [PATCH] [PATCH v2 2/2] emacs: Bind filter in search to 'l' --- 44/fb8873e91ef52edef5e2f7b5f99742d003ae5e | 94 +++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 44/fb8873e91ef52edef5e2f7b5f99742d003ae5e diff --git a/44/fb8873e91ef52edef5e2f7b5f99742d003ae5e b/44/fb8873e91ef52edef5e2f7b5f99742d003ae5e new file mode 100644 index 000000000..b166f1ff5 --- /dev/null +++ b/44/fb8873e91ef52edef5e2f7b5f99742d003ae5e @@ -0,0 +1,94 @@ +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 03661431FBF + for ; Wed, 25 Apr 2012 10:12:41 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.201 +X-Spam-Level: +X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, + 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 KFPNFuD4T9on for ; + Wed, 25 Apr 2012 10:12:39 -0700 (PDT) +Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com + [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 2B196431FBD + for ; Wed, 25 Apr 2012 10:12:36 -0700 (PDT) +Received: by wibhn6 with SMTP id hn6so268024wib.2 + for ; Wed, 25 Apr 2012 10:12:34 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; + bh=PW1PqFKK3k/erqZ/ZHv25+PB5uoVb2XeCxzkculYJJA=; + b=S5hW+hbzQWy1SqbiLmqSqris54+hQ+dzI/E0qDWmt/Cn3CxgKLGji37uByy19OLhBb + vOsQo+PyNAyRHV/gI8vN8JDoETCp3gQSQeeruiZoRwInQdQzZzN3sBdqI8TWUQQpDUDR + Q4DaP2voNUCImATGD9by3VMfTFTW3qxreSURrIjIylyIJdd4SorDkxGP2puNgyzKmCMY + atBfAbGO+RIACFLkmh7fNJK+Ih0uwivO13g3SR78BT/jkcYhFvSOnVEHttBLk8jmPgAh + fUOyNfrQ4hwLyWLJ7NWunyVJU9o4uaxjx06lBF5dk7NHaPi5QCDrq/UPHxtn2kaAYzCO + XFVA== +Received: by 10.216.131.34 with SMTP id l34mr2093475wei.54.1335373954880; + Wed, 25 Apr 2012 10:12:34 -0700 (PDT) +Received: from localhost (94-192-233-223.zone6.bethere.co.uk. + [94.192.233.223]) by mx.google.com with ESMTPS id + l5sm38508505wia.11.2012.04.25.10.12.33 (version=TLSv1/SSLv3 cipher=OTHER); + Wed, 25 Apr 2012 10:12:34 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH v2 2/2] emacs: Bind filter in search to 'l' +Date: Wed, 25 Apr 2012 18:12:34 +0100 +Message-Id: <1335373954-4578-3-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +In-Reply-To: <1335373954-4578-1-git-send-email-markwalters1009@gmail.com> +References: <1335373954-4578-1-git-send-email-markwalters1009@gmail.com> +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, 25 Apr 2012 17:12:41 -0000 + +Change the key binding for filter (or "limit") in search-mode. This +gives consistency with the new filter in show-mode, and frees 'f' for +forward-thread in the future. +--- + emacs/notmuch.el | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/emacs/notmuch.el b/emacs/notmuch.el +index 736d00f..3df826c 100644 +--- a/emacs/notmuch.el ++++ b/emacs/notmuch.el +@@ -286,7 +286,7 @@ For a mouse binding, return nil." + (define-key map "=" 'notmuch-search-refresh-view) + (define-key map "G" 'notmuch-search-poll-and-refresh-view) + (define-key map "t" 'notmuch-search-filter-by-tag) +- (define-key map "f" 'notmuch-search-filter) ++ (define-key map "l" 'notmuch-search-filter) + (define-key map [mouse-1] 'notmuch-search-show-thread) + (define-key map "*" 'notmuch-search-tag-all) + (define-key map "a" 'notmuch-search-archive-thread) +@@ -1095,7 +1095,7 @@ search." + (notmuch-search-refresh-view)) + + (defun notmuch-search-filter (query) +- "Filter the current search results based on an additional query string. ++ "Filter or LIMIT the current search results based on an additional query string. + + Runs a new search matching only messages that match both the + current search results AND the additional query string provided." +-- +1.7.9.1 + -- 2.26.2