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 94555431FB6 for ; Tue, 2 Oct 2012 16:04:20 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7] 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 Z-tu51V3MVw4 for ; Tue, 2 Oct 2012 16:04:19 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 797E1431FAE for ; Tue, 2 Oct 2012 16:04:19 -0700 (PDT) Received: by lahl5 with SMTP id l5so3176268lah.26 for ; Tue, 02 Oct 2012 16:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nickurak.ca; s=google-dkim; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=Vvsm/HdIGQi8HIt7sjHxRyMRayFvHZnuyuR2/ewY49U=; b=gyYVw/veF8GHiTr9kgVzATx2JtB/AYZ9oHetce3lF/sdp3P2nvdIZluLz1YTXa2T+u TqnKmHJMo9SluaMOGD8IMTpBi8YxWIzo4K0vxUWjBnZoNEHq4lIRWNWtBfHKw9abDXgZ TnbAYmjdQxsBqbHgZ1XmgNiGneYmR6qru7qBM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :x-gm-message-state; bh=Vvsm/HdIGQi8HIt7sjHxRyMRayFvHZnuyuR2/ewY49U=; b=WOK3un3N+8g/b5I1cKViPObzh3om6ZrNWpH+gPT0cZ5FkFsnV9WsVn2dIEJ6XX5rZk MPnAh0BEMvAdCt7lvXWf6JMWeLQj+F1MiyMKpDR6VWcVdlYgm9t9DgxR8Op+lt4lQB1v yfb/Tf2O1+f6XBVRjDJwnBHyzhiUaZOVk4lUfvQlaalX9egZGZApI2AD/JTw4QRxzJTD X9Ydrn5kmMS75uSUF4CSmzRC66Peq4sMk+3QfNlMPE36eMwi6wq7Oj7QNnq85Pfbab1I SWR9kVOq0t6TTfvxuEQTDtjIPuUiS0cMt9WsDaDlzXzGssAeXTGuqv+dPFwPl8DGl/7I c42A== MIME-Version: 1.0 Received: by 10.152.148.195 with SMTP id tu3mr213769lab.16.1349219057636; Tue, 02 Oct 2012 16:04:17 -0700 (PDT) Sender: jeremy@nickurak.ca Received: by 10.114.66.52 with HTTP; Tue, 2 Oct 2012 16:04:17 -0700 (PDT) X-Originating-IP: [96.50.176.191] In-Reply-To: <1349209083-7170-1-git-send-email-jani@nikula.org> References: <1349209083-7170-1-git-send-email-jani@nikula.org> Date: Tue, 2 Oct 2012 17:04:17 -0600 X-Google-Sender-Auth: RWQGTY_bDDJ_zGZOuThwJcLZ3aU Message-ID: Subject: Re: [PATCH 0/2] emacs: per saved search sort order From: Jeremy Nickurak To: notmuch@notmuchmail.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQkKvQzGajyWdsxBUDPR9n2FckJOVdidOBuYW8HeH+mTj9LRzicsmt4pTxxmUA4M1PgrkDM1 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: Tue, 02 Oct 2012 23:04:20 -0000 Would it be better to include sorting options in the query string? Then it could just be stored in the saved search, and used outside saved searches. On Tue, Oct 2, 2012 at 2:18 PM, Jani Nikula wrote: > These (fairly unpolished) patches add support for defining the sort order > for each saved search individually. The approach is very low-tech and > simple; providing a separate alist which maps saved search names with sort > order for the saved searches that should have a sort order overriding the > default notmuch-search-oldest-first. > > Having this embedded directly in notmuch-saved-searches would be nicer, but > also much more complicated due to backwards compatibility issues. I presume > the diffstat would be at least an order of magnitude bigger. > > The patches may not be up to notmuch standards, but I'm providing them > anyway should anyone find them useful. > > BR, > Jani. > > > Jani Nikula (2): > emacs: store sort order in the widgets in notmuch-hello > emacs: add support for defining custom sort order for saved searches > > emacs/notmuch-hello.el | 10 +++++++--- > emacs/notmuch-lib.el | 9 +++++++++ > 2 files changed, 16 insertions(+), 3 deletions(-) > > -- > 1.7.2.5 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch