From e656051be96521c45e1592a001540490d2d802fe Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Fri, 7 Feb 2014 12:25:51 +0100 Subject: [PATCH] [PATCH 0/2] emacs: per saved search sort order --- dc/2002f1a3f0dd3019f707c89d1437e50f5ba5e5 | 105 ++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 dc/2002f1a3f0dd3019f707c89d1437e50f5ba5e5 diff --git a/dc/2002f1a3f0dd3019f707c89d1437e50f5ba5e5 b/dc/2002f1a3f0dd3019f707c89d1437e50f5ba5e5 new file mode 100644 index 000000000..b2ce6cf16 --- /dev/null +++ b/dc/2002f1a3f0dd3019f707c89d1437e50f5ba5e5 @@ -0,0 +1,105 @@ +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 8EB11431FC7 + for ; Fri, 7 Feb 2014 03:26:12 -0800 (PST) +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=[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 QYcFjzdoqccS for ; + Fri, 7 Feb 2014 03:26:04 -0800 (PST) +Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com + [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 2CE92431FAE + for ; Fri, 7 Feb 2014 03:26:04 -0800 (PST) +Received: by mail-qc0-f181.google.com with SMTP id e9so5549906qcy.40 + for ; Fri, 07 Feb 2014 03:26:02 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to + :references; + bh=mdphAcHyuzuWFUgxD2Jgj4E0CSfNnrsp+SdW1BcHinE=; + b=HVoKYyXIviGhKCbmtVi7pbmWRmhatGPyE3xYGkymAItFaZFZekCnYPm9vLP+gzOKOZ + q9+jjNC0BCmMb5zUFALFY3tSq79pxAgXl6/IpIi+AfyQC1nSXsHAh7vEKZmgAOh5v1kg + l4Ax7lrK2YaOdIMkm+n7ZkA/1y3J4eZIzFQMpsAcEb2EnrkedTYfbTZgZx89icP5XPg9 + 3Qq1YsU+gR8rpcbETCVS+UWpI0qpRLQQyFIV7ornlNMgJBiYKOg+kCDy26o6uAvABXPA + CEX3uB46hLUCSIv7WAwvhlt3uYUXiBX2lwcc5QGNeEIoKR4czj2mm+27KaE9z6r5k53y + RaOg== +X-Gm-Message-State: + ALoCoQkGCgxBSSH2Z6P//y3LoawEpDe6/joAb/IQHgbXRAgyYUPh5WJFNeTskpA++aQhHuhXQJsD +X-Received: by 10.224.173.1 with SMTP id n1mr18337117qaz.48.1391772362478; + Fri, 07 Feb 2014 03:26:02 -0800 (PST) +Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3]) + by mx.google.com with ESMTPSA id 67sm8314196qgr.15.2014.02.07.03.26.01 + for + (version=TLSv1.1 cipher=RC4-SHA bits=128/128); + Fri, 07 Feb 2014 03:26:01 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org, + cworth@cworth.org +Subject: [PATCH 0/2] emacs: per saved search sort order +Date: Fri, 7 Feb 2014 12:25:51 +0100 +Message-Id: +X-Mailer: git-send-email 1.7.2.5 +In-Reply-To: <1391727088-22172-1-git-send-email-cworth@cworth.org> +References: <1391727088-22172-1-git-send-email-cworth@cworth.org> +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: Fri, 07 Feb 2014 11:26:13 -0000 + +On Thu, 06 Feb 2014, Carl Worth wrote: +> This allows for the user to control the order that results are +> returned from saved-searches, (and independently from the order of all +> other searches which is controlled by notmuch-search-oldest-first). +> --- +> +> This allows me to get back to the behavior that notmuch had long ago, +> (the documentation for the changed behavior was updated in commit +> c1a42652a173a4bb70ab72388e6ad150d19a2b06). I'm not sure when the +> actual behavioral change was made. + +I seem to have fixed the documentation (I'd forgotten!) but I'm pretty +sure I had nothing to do with changing the behaviour! :) + +> A fanicer change might allow for a configurable sort order for each +> saved search, but this more minimal change at least lets me use the +> latest notmuch once again. + +Here are simple patches to support per saved search sort order. I seem +to have been running these for more than a year now [1]. It's not +perfect or pretty but works for me. + +BR, +Jani. + +[1] id:1349209083-7170-1-git-send-email-jani@nikula.org + + +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 | 8 +++++++- + emacs/notmuch-lib.el | 9 +++++++++ + 2 files changed, 16 insertions(+), 1 deletions(-) + +-- +1.7.2.5 + -- 2.26.2