1 Return-Path: <dme@dme.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 5E8F2431FBD
\r
6 for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 06:01:37 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.91 tagged_above=-999 required=5 tests=[AWL=-0.170,
\r
12 BAYES_20=-0.74] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 7yW6LzNQQota for <notmuch@notmuchmail.org>;
\r
16 Thu, 11 Feb 2010 06:01:36 -0800 (PST)
\r
17 Received: from mail-fx0-f212.google.com (mail-fx0-f212.google.com
\r
19 by olra.theworths.org (Postfix) with ESMTP id BC832431FBC
\r
20 for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 06:01:35 -0800 (PST)
\r
21 Received: by fxm4 with SMTP id 4so1207162fxm.0
\r
22 for <notmuch@notmuchmail.org>; Thu, 11 Feb 2010 06:01:34 -0800 (PST)
\r
23 Received: by 10.86.126.9 with SMTP id y9mr358082fgc.12.1265896894592;
\r
24 Thu, 11 Feb 2010 06:01:34 -0800 (PST)
\r
25 Received: from aw.hh.sledj.net (host83-217-165-81.dsl.vispa.com
\r
27 by mx.google.com with ESMTPS id 16sm1187146fxm.0.2010.02.11.06.01.33
\r
28 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
29 Thu, 11 Feb 2010 06:01:33 -0800 (PST)
\r
30 Received: by aw.hh.sledj.net (Postfix, from userid 1000)
\r
31 id 98F653A08A; Thu, 11 Feb 2010 14:01:14 +0000 (GMT)
\r
32 To: Sebastian Spaeth <Sebastian@SSpaeth.de>, notmuch@notmuchmail.org
\r
33 In-Reply-To: <87iqa3sxbj.fsf@SSpaeth.de>
\r
34 References: <1265890752-26242-1-git-send-email-dme@dme.org>
\r
35 <87iqa3sxbj.fsf@SSpaeth.de>
\r
36 From: David Edmondson <dme@dme.org>
\r
37 Date: Thu, 11 Feb 2010 14:01:14 +0000
\r
38 Message-ID: <87fx57vplh.fsf@aw.hh.sledj.net>
\r
40 Content-Type: text/plain; charset=us-ascii
\r
41 Subject: Re: [notmuch] notmuch.el: Prefix arg inverts the sort order of
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Thu, 11 Feb 2010 14:01:37 -0000
\r
57 On Thu, 11 Feb 2010 14:42:40 +0100, "Sebastian Spaeth" <Sebastian@SSpaeth.de> wrote:
\r
58 > On Thu, 11 Feb 2010 12:19:12 +0000, David Edmondson <dme@dme.org> wrote:
\r
61 > I think the correct thing here would be to let notmuch return search is
\r
62 > inverse sort order rather than reverting this later in the client
\r
63 > (unneccessary work).
\r
65 > --sort=oldest|newest|relevance
\r
67 > seems to be what xapian can easily provide us with.
\r
69 That's what happens:
\r
71 (let ((proc (start-process-shell-command
\r
72 "notmuch-search" buffer notmuch-command "search"
\r
73 (if oldest-first "--sort=oldest-first" "--sort=newest-first")
\r
74 (shell-quote-argument query))))
\r
80 David Edmondson, http://dme.org
\r