1 Return-Path: <servilio@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 744224196F5
\r
6 for <notmuch@notmuchmail.org>; Sat, 26 Jun 2010 16:32:15 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5
\r
12 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
\r
13 DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]
\r
15 Received: from olra.theworths.org ([127.0.0.1])
\r
16 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id a8ECs9+zWAvm for <notmuch@notmuchmail.org>;
\r
18 Sat, 26 Jun 2010 16:32:05 -0700 (PDT)
\r
19 Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com
\r
21 by olra.theworths.org (Postfix) with ESMTP id 55868431FC1
\r
22 for <notmuch@notmuchmail.org>; Sat, 26 Jun 2010 16:32:05 -0700 (PDT)
\r
23 Received: by vws9 with SMTP id 9so623565vws.26
\r
24 for <notmuch@notmuchmail.org>; Sat, 26 Jun 2010 16:32:04 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=domainkey-signature:mime-version:received:received:date:message-id
\r
27 :subject:from:to:content-type;
\r
28 bh=BSsfS3kzDtumnB2vzUaubaqg5jgL/acQ0koShg+OLrA=;
\r
29 b=GiUvC7rJhe8k7T+HWrOfLm8Q1QS+Rb/Y308728N7wWIssbuDfkQglN5CW0vHzhWUwN
\r
30 F1KiZNs8vDHTyvlVZLoD5F2m2YVz5iraX7bgpCXbuGT+i4IVANwCmcYWh6UtW2YhAUeM
\r
31 QbECfhvRunr7BM3ap11+gR+Cco1xJoCMG/Bjs=
\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
33 h=mime-version:date:message-id:subject:from:to:content-type;
\r
34 b=VZQlmWkTU9377PJn64fyjoVP2MbLT/Bz6zDZsf49Uvw7yNhQhofyGIvlvEQtiX6nuv
\r
35 9DQR/nDO3kVqTZXrDa1w1vAZT/YJEJEdd6WUVaUmvss/jRwdzmjSEyELQi2t2oOfeyeT
\r
36 eBdhZt76Y/1bzRqorulGWgbe0jZouBkTM4kIw=
\r
38 Received: by 10.220.128.203 with SMTP id l11mr1673531vcs.125.1277595124047;
\r
39 Sat, 26 Jun 2010 16:32:04 -0700 (PDT)
\r
40 Received: by 10.220.90.138 with HTTP; Sat, 26 Jun 2010 16:32:03 -0700 (PDT)
\r
41 Date: Sat, 26 Jun 2010 19:32:03 -0400
\r
42 Message-ID: <AANLkTil_ma97B37EOqKZ3nt5-2aYPVJEmjP-2rP6HWnc@mail.gmail.com>
\r
43 Subject: [PATCH 3/3] Provide a key binding for toggling processing order.
\r
44 From: "servilio@gmail.com" <servilio@gmail.com>
\r
45 To: notmuch <notmuch@notmuchmail.org>
\r
46 Content-Type: text/plain; charset=ISO-8859-1
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Sat, 26 Jun 2010 23:32:15 -0000
\r
61 Because maybe for this search, or new batch of message you would like
\r
62 to do it a bit different, but then go back to your normal workflow.
\r
63 All without magical M-x incantations.
\r
66 emacs/notmuch.el | 6 ++++++
\r
67 1 files changed, 6 insertions(+), 0 deletions(-)
\r
69 diff --git a/emacs/notmuch.el b/emacs/notmuch.el
\r
70 index 404e77d..5ab3df7 100644
\r
71 --- a/emacs/notmuch.el
\r
72 +++ b/emacs/notmuch.el
\r
73 @@ -207,6 +207,7 @@ For a mouse binding, return nil."
\r
74 (define-key map "m" 'notmuch-mua-mail)
\r
75 (define-key map "s" 'notmuch-search)
\r
76 (define-key map "o" 'notmuch-search-toggle-order)
\r
77 + (define-key map "O" 'notmuch-search-toggle-processing-order)
\r
78 (define-key map "=" 'notmuch-search-refresh-view)
\r
79 (define-key map "G" 'notmuch-search-poll-and-refresh-view)
\r
80 (define-key map "t" 'notmuch-search-filter-by-tag)
\r
81 @@ -863,6 +864,11 @@ search."
\r
82 (set 'notmuch-search-oldest-first (not notmuch-search-oldest-first))
\r
83 (notmuch-search-refresh-view))
\r
85 +(defun notmuch-search-toggle-processing-order ()
\r
86 + "Toggle the current mail processing order."
\r
88 + (set 'notmuch-process-newer-next (not notmuch-process-newer-next)))
\r
90 (defun notmuch-search-filter (query)
\r
91 "Filter the current search results based on an additional query string.
\r