From: Mark Walters Date: Mon, 10 Jun 2013 19:43:13 +0000 (+0100) Subject: Re: [PATCH] emacs: update search sort order help to match code X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=99aecc555a5e8a8f6892432be8fe037c2ecc96c9;p=notmuch-archives.git Re: [PATCH] emacs: update search sort order help to match code --- diff --git a/4d/cc231d473e27e8502fb8c253cd59e34207e072 b/4d/cc231d473e27e8502fb8c253cd59e34207e072 new file mode 100644 index 000000000..5ee5650cd --- /dev/null +++ b/4d/cc231d473e27e8502fb8c253cd59e34207e072 @@ -0,0 +1,129 @@ +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 1C686431FD6 + for ; Mon, 10 Jun 2013 12:43:30 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] 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 A9Olgg18tBj7 for ; + Mon, 10 Jun 2013 12:43:22 -0700 (PDT) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 215D9431FC7 + for ; Mon, 10 Jun 2013 12:43:22 -0700 (PDT) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1Um7zm-0007mF-FZ; Mon, 10 Jun 2013 20:43:16 +0100 +Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) + (envelope-from ) + id 1Um7zm-0004hz-6Z; Mon, 10 Jun 2013 20:43:14 +0100 +From: Mark Walters +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: update search sort order help to match code +In-Reply-To: <1370282191-4526-1-git-send-email-jani@nikula.org> +References: <1370282191-4526-1-git-send-email-jani@nikula.org> +User-Agent: Notmuch/0.15.2+171~ge2f30a2 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Mon, 10 Jun 2013 20:43:13 +0100 +Message-ID: <87obbdrbu6.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 93.97.24.31 +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: 5c8340a786be58f19cffd6c31c59ef00 (of first 20000 bytes) +X-SpamAssassin-Score: -0.0 +X-SpamAssassin-SpamBar: / +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -0.0 points. + Summary of the scoring: + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * -0.0 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +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, 10 Jun 2013 19:43:30 -0000 + + +LGTM +1 + +Mark + +On Mon, 03 Jun 2013, Jani Nikula wrote: +> --- +> emacs/notmuch-lib.el | 7 ++++++- +> emacs/notmuch.el | 13 ++----------- +> 2 files changed, 8 insertions(+), 12 deletions(-) +> +> diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el +> index 28f78e0..c43d5a9 100644 +> --- a/emacs/notmuch-lib.el +> +++ b/emacs/notmuch-lib.el +> @@ -68,7 +68,12 @@ +> :group 'notmuch) +> +> (defcustom notmuch-search-oldest-first t +> - "Show the oldest mail first when searching." +> + "Show the oldest mail first when searching. +> + +> +This variable defines the default sort order for displaying +> +search results. Note that any filtered searches created by +> +`notmuch-search-filter' retain the search order of the parent +> +search." +> :type 'boolean +> :group 'notmuch-search) +> +> diff --git a/emacs/notmuch.el b/emacs/notmuch.el +> index 26ba7e7..cc62088 100644 +> --- a/emacs/notmuch.el +> +++ b/emacs/notmuch.el +> @@ -1030,17 +1030,8 @@ depending on the value of `notmuch-poll-script'." +> (defun notmuch-search-toggle-order () +> "Toggle the current search order. +> +> -By default, the \"inbox\" view created by `notmuch' is displayed +> -in chronological order (oldest thread at the beginning of the +> -buffer), while any global searches created by `notmuch-search' +> -are displayed in reverse-chronological order (newest thread at +> -the beginning of the buffer). +> - +> -This command toggles the sort order for the current search. +> - +> -Note that any filtered searches created by +> -`notmuch-search-filter' retain the search order of the parent +> -search." +> +This command toggles the sort order for the current search. The +> +default sort order is defined by `notmuch-search-oldest-first'." +> (interactive) +> (set 'notmuch-search-oldest-first (not notmuch-search-oldest-first)) +> (notmuch-search-refresh-view)) +> -- +> 1.7.10.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch