[PATCH 3/3] Provide a key binding for toggling processing order.
authorservilio@gmail.com <servilio@gmail.com>
Sat, 26 Jun 2010 23:32:03 +0000 (19:32 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:09 +0000 (09:37 -0800)
b7/2cf1a766e1f370fa2f5340a4a5fbb86da32b75 [new file with mode: 0644]

diff --git a/b7/2cf1a766e1f370fa2f5340a4a5fbb86da32b75 b/b7/2cf1a766e1f370fa2f5340a4a5fbb86da32b75
new file mode 100644 (file)
index 0000000..2c538ec
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <servilio@gmail.com>\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 744224196F5\r
+       for <notmuch@notmuchmail.org>; Sat, 26 Jun 2010 16:32:15 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.1\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
+       tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+       DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001]\r
+       autolearn=ham\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 a8ECs9+zWAvm for <notmuch@notmuchmail.org>;\r
+       Sat, 26 Jun 2010 16:32:05 -0700 (PDT)\r
+Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com\r
+       [209.85.212.53])\r
+       by olra.theworths.org (Postfix) with ESMTP id 55868431FC1\r
+       for <notmuch@notmuchmail.org>; Sat, 26 Jun 2010 16:32:05 -0700 (PDT)\r
+Received: by vws9 with SMTP id 9so623565vws.26\r
+       for <notmuch@notmuchmail.org>; Sat, 26 Jun 2010 16:32:04 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:mime-version:received:received:date:message-id\r
+       :subject:from:to:content-type;\r
+       bh=BSsfS3kzDtumnB2vzUaubaqg5jgL/acQ0koShg+OLrA=;\r
+       b=GiUvC7rJhe8k7T+HWrOfLm8Q1QS+Rb/Y308728N7wWIssbuDfkQglN5CW0vHzhWUwN\r
+       F1KiZNs8vDHTyvlVZLoD5F2m2YVz5iraX7bgpCXbuGT+i4IVANwCmcYWh6UtW2YhAUeM\r
+       QbECfhvRunr7BM3ap11+gR+Cco1xJoCMG/Bjs=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=mime-version:date:message-id:subject:from:to:content-type;\r
+       b=VZQlmWkTU9377PJn64fyjoVP2MbLT/Bz6zDZsf49Uvw7yNhQhofyGIvlvEQtiX6nuv\r
+       9DQR/nDO3kVqTZXrDa1w1vAZT/YJEJEdd6WUVaUmvss/jRwdzmjSEyELQi2t2oOfeyeT\r
+       eBdhZt76Y/1bzRqorulGWgbe0jZouBkTM4kIw=\r
+MIME-Version: 1.0\r
+Received: by 10.220.128.203 with SMTP id l11mr1673531vcs.125.1277595124047; \r
+       Sat, 26 Jun 2010 16:32:04 -0700 (PDT)\r
+Received: by 10.220.90.138 with HTTP; Sat, 26 Jun 2010 16:32:03 -0700 (PDT)\r
+Date: Sat, 26 Jun 2010 19:32:03 -0400\r
+Message-ID: <AANLkTil_ma97B37EOqKZ3nt5-2aYPVJEmjP-2rP6HWnc@mail.gmail.com>\r
+Subject: [PATCH 3/3] Provide a key binding for toggling processing order.\r
+From: "servilio@gmail.com" <servilio@gmail.com>\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Content-Type: text/plain; charset=ISO-8859-1\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: Sat, 26 Jun 2010 23:32:15 -0000\r
+\r
+Because maybe for this search, or new batch of message you would like\r
+to do it a bit different, but then go back to your normal workflow.\r
+All without magical M-x incantations.\r
+\r
+---\r
+ emacs/notmuch.el |    6 ++++++\r
+ 1 files changed, 6 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index 404e77d..5ab3df7 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -207,6 +207,7 @@ For a mouse binding, return nil."\r
+     (define-key map "m" 'notmuch-mua-mail)\r
+     (define-key map "s" 'notmuch-search)\r
+     (define-key map "o" 'notmuch-search-toggle-order)\r
++    (define-key map "O" 'notmuch-search-toggle-processing-order)\r
+     (define-key map "=" 'notmuch-search-refresh-view)\r
+     (define-key map "G" 'notmuch-search-poll-and-refresh-view)\r
+     (define-key map "t" 'notmuch-search-filter-by-tag)\r
+@@ -863,6 +864,11 @@ search."\r
+   (set 'notmuch-search-oldest-first (not notmuch-search-oldest-first))\r
+   (notmuch-search-refresh-view))\r
+\r
++(defun notmuch-search-toggle-processing-order ()\r
++  "Toggle the current mail processing order."\r
++  (interactive)\r
++  (set 'notmuch-process-newer-next (not notmuch-process-newer-next)))\r
++\r
+ (defun notmuch-search-filter (query)\r
+   "Filter the current search results based on an additional query string.\r
+\r
+-- \r
+1.7.1\r