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 558124196F0 for ; Mon, 3 May 2010 13:58:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 6uWWtOAN4jNA for ; Mon, 3 May 2010 13:58:38 -0700 (PDT) Received: from keithp.com (home.keithp.com [63.227.221.253]) by olra.theworths.org (Postfix) with ESMTP id 1745F431FC1 for ; Mon, 3 May 2010 13:58:38 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id 244857601D8 for ; Mon, 3 May 2010 13:58:37 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at keithp.com Received: from keithp.com ([127.0.0.1]) by localhost (keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0tw0Dt7esqGA; Mon, 3 May 2010 13:58:33 -0700 (PDT) Received: by keithp.com (Postfix, from userid 1033) id CAFE37601D4; Mon, 3 May 2010 13:58:33 -0700 (PDT) Received: from koto.keithp.com (localhost [127.0.0.1]) by keithp.com (Postfix) with ESMTP id AD0C2760175; Mon, 3 May 2010 13:58:33 -0700 (PDT) Received: by koto.keithp.com (Postfix, from userid 1488) id D92D211C286; Mon, 3 May 2010 13:58:31 -0700 (PDT) From: Keith Packard To: notmuch@notmuchmail.org Subject: [PATCH] Customize saved search order separately from regular search order Date: Mon, 3 May 2010 13:58:27 -0700 Message-Id: <1272920307-25995-1-git-send-email-keithp@keithp.com> X-Mailer: git-send-email 1.7.0.4 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: Mon, 03 May 2010 20:58:39 -0000 I use 'saved searches' as a folder mechanism and want them to be shown oldest first. Otherwise, while searching for messages normally, I want to see the most recent messages first. This patch makes these two default search orders separate. Signed-off-by: Keith Packard --- emacs/notmuch-hello.el | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 6a1c56e..f44b1d3 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -37,6 +37,11 @@ :type 'integer :group 'notmuch) +(defcustom notmuch-saved-search-oldest-first t + "Whether saved searches should be oldest first." + :type 'boolean + :group 'notmuch) + (defcustom notmuch-show-empty-saved-searches nil "Should saved searches with no messages be listed?" :type 'boolean @@ -140,7 +145,7 @@ diagonal." (defun notmuch-hello-widget-search (widget &rest ignore) (notmuch-search (widget-get widget :notmuch-search-terms) - notmuch-search-oldest-first + notmuch-saved-search-oldest-first nil nil #'notmuch-hello-search-continuation)) (defun notmuch-saved-search-count (search) -- 1.7.0.4