[PATCH 0/2] emacs: per saved search sort order
authorJani Nikula <jani@nikula.org>
Tue, 2 Oct 2012 20:18:01 +0000 (22:18 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:42 +0000 (09:49 -0800)
f0/2bccddc8c3559a3ff2ef0b6f282fd43a52ea83 [new file with mode: 0644]

diff --git a/f0/2bccddc8c3559a3ff2ef0b6f282fd43a52ea83 b/f0/2bccddc8c3559a3ff2ef0b6f282fd43a52ea83
new file mode 100644 (file)
index 0000000..cbc7054
--- /dev/null
@@ -0,0 +1,88 @@
+Return-Path: <jani@nikula.org>\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 64D93431FB6\r
+       for <notmuch@notmuchmail.org>; Tue,  2 Oct 2012 13:18:14 -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=[RCVD_IN_DNSWL_LOW=-0.7] 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 JmpIVWMPxBoW for <notmuch@notmuchmail.org>;\r
+       Tue,  2 Oct 2012 13:18:13 -0700 (PDT)\r
+Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com\r
+       [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0D05F431FAE\r
+       for <notmuch@notmuchmail.org>; Tue,  2 Oct 2012 13:18:13 -0700 (PDT)\r
+Received: by qcpx40 with SMTP id x40so6183217qcp.26\r
+       for <notmuch@notmuchmail.org>; Tue, 02 Oct 2012 13:18:11 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state;\r
+       bh=Kp9Faa4yWumRtILpKePj0uJtkMrwY0ddrXaHkFrAp7U=;\r
+       b=IGVxIL9WGco/bTCdBE3TgtlWyc6h6D43HwU60h0umu509pHSNakttiuxwam0M/OuIy\r
+       nHlygxHhKvhiip5KAHeM8iS/SfUUQ/yI5ETRBA4dADJNif9d8RPAEeiXlMgTbjIt5hl0\r
+       mPT7sBOfwgqomzNk9WyN61R64Vz4PiwYF/G37iXen6ttA4jy/8RPvMpaMRsP0+3G/TgX\r
+       GmEfmBvlwGbZahHwnRldRv6KUtk8TTs62nI7jrl1DIUDWS5uwzQQaY9M+eyG2xEjJlom\r
+       eZK5lD02G/0K1OcQQJIwoWT2DfsMJ5rReCTKHGbzoeb0KQt43cUG4F+HBAiGB0E+JuF8\r
+       kPDA==\r
+Received: by 10.49.48.43 with SMTP id i11mr7667308qen.10.1349209091303;\r
+       Tue, 02 Oct 2012 13:18:11 -0700 (PDT)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+       by mx.google.com with ESMTPS id em3sm2313786qab.5.2012.10.02.13.18.08\r
+       (version=SSLv3 cipher=OTHER); Tue, 02 Oct 2012 13:18:10 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/2] emacs: per saved search sort order\r
+Date: Tue,  2 Oct 2012 22:18:01 +0200\r
+Message-Id: <1349209083-7170-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.2.5\r
+X-Gm-Message-State:\r
+ ALoCoQk24R6+fRIrKSzROzM4eo5NoBXZWs3gpk8ZTVSIqa9xKp/bFKKYY5XsNIxyTl7JOpVmp66Y\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 20:18:14 -0000\r
+\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