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 5E8F2431FBD for ; Thu, 11 Feb 2010 06:01:37 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.91 X-Spam-Level: X-Spam-Status: No, score=-0.91 tagged_above=-999 required=5 tests=[AWL=-0.170, BAYES_20=-0.74] 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 7yW6LzNQQota for ; Thu, 11 Feb 2010 06:01:36 -0800 (PST) Received: from mail-fx0-f212.google.com (mail-fx0-f212.google.com [209.85.220.212]) by olra.theworths.org (Postfix) with ESMTP id BC832431FBC for ; Thu, 11 Feb 2010 06:01:35 -0800 (PST) Received: by fxm4 with SMTP id 4so1207162fxm.0 for ; Thu, 11 Feb 2010 06:01:34 -0800 (PST) Received: by 10.86.126.9 with SMTP id y9mr358082fgc.12.1265896894592; Thu, 11 Feb 2010 06:01:34 -0800 (PST) Received: from aw.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id 16sm1187146fxm.0.2010.02.11.06.01.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Feb 2010 06:01:33 -0800 (PST) Received: by aw.hh.sledj.net (Postfix, from userid 1000) id 98F653A08A; Thu, 11 Feb 2010 14:01:14 +0000 (GMT) To: Sebastian Spaeth , notmuch@notmuchmail.org In-Reply-To: <87iqa3sxbj.fsf@SSpaeth.de> References: <1265890752-26242-1-git-send-email-dme@dme.org> <87iqa3sxbj.fsf@SSpaeth.de> From: David Edmondson Date: Thu, 11 Feb 2010 14:01:14 +0000 Message-ID: <87fx57vplh.fsf@aw.hh.sledj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] notmuch.el: Prefix arg inverts the sort order of notmuch-search. 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: Thu, 11 Feb 2010 14:01:37 -0000 On Thu, 11 Feb 2010 14:42:40 +0100, "Sebastian Spaeth" wrote: > On Thu, 11 Feb 2010 12:19:12 +0000, David Edmondson 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