Re: [PATCH 0/2] emacs: per saved search sort order
authorJeremy Nickurak <not-much@trk.nickurak.ca>
Tue, 2 Oct 2012 23:04:17 +0000 (17:04 +1800)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:42 +0000 (09:49 -0800)
2f/4b16e65001850de1a56cc1ee779eee07e6fe6e [new file with mode: 0644]

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