Re: [notmuch] notmuch.el: Prefix arg inverts the sort order of notmuch-search.

Subject: Re: [notmuch] notmuch.el: Prefix arg inverts the sort order of notmuch-search.

Date: Thu, 11 Feb 2010 14:01:14 +0000

To: Sebastian Spaeth, notmuch@notmuchmail.org

Cc:

From: David Edmondson


On Thu, 11 Feb 2010 14:42:40 +0100, "Sebastian Spaeth" <Sebastian@SSpaeth.de> wrote:
> On Thu, 11 Feb 2010 12:19:12 +0000, David Edmondson <dme@dme.org> wrote:
> ...
> 
> I think the correct thing here would be to let notmuch return search is
> inverse sort order rather than reverting this later in the client
> (unneccessary work). 
> 
>  --sort=oldest|newest|relevance 
> 
> seems to be what xapian can easily provide us with.

That's what happens:

	(let ((proc (start-process-shell-command
		     "notmuch-search" buffer notmuch-command "search"
		     (if oldest-first "--sort=oldest-first" "--sort=newest-first")
		     (shell-quote-argument query))))

Isn't it?

dme.
-- 
David Edmondson, http://dme.org

Thread: