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