--- /dev/null
+Return-Path: <markwalters1009@gmail.com>\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 2B02A431FBD\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Apr 2014 01:40:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+ 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 mWOYk2VxsNXZ for <notmuch@notmuchmail.org>;\r
+ Sat, 12 Apr 2014 01:40:40 -0700 (PDT)\r
+Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com\r
+ [209.85.212.173]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 974CF431FAF\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Apr 2014 01:40:40 -0700 (PDT)\r
+Received: by mail-wi0-f173.google.com with SMTP id z2so2075243wiv.0\r
+ for <notmuch@notmuchmail.org>; Sat, 12 Apr 2014 01:40:38 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id;\r
+ bh=AkElRQbBDAy1Qwg2hEIgzfa0UMbDyUCCogNsw/5J2i4=;\r
+ b=VCare2nvnErCzj01s+oe6rnK95hJCnsqnxU2BtPJilpSImpnth8aCBjcq4ZRVectC6\r
+ 2ZjOo4I7kVvPzpxW6uftcKURd6xrRjv1bksmhzGJ7ClhpXSlWSSHMvxCCL0ZAPG0TY/3\r
+ rZNS0DpanW+Jlc6hhZa8lr633xS3Yw+Lk+1NPFa1zDfQNpHAQ6s05dgGvUZuM7v4yYg3\r
+ sqGe7XEVZD+twiCHVgFyMJ0y2oU45FmqepDgBeVTtOxew6RrVoEdxYvXe3VDNWMtI8ev\r
+ 00Lv3bTFJHBWhiGsjjxu8gG7aMiu+q6hGarNjTLOwa28a2nC/zLdgp2E8wUyT55JxKAj\r
+ kgAQ==\r
+X-Received: by 10.180.24.134 with SMTP id u6mr1700156wif.41.1397292037857;\r
+ Sat, 12 Apr 2014 01:40:37 -0700 (PDT)\r
+Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162])\r
+ by mx.google.com with ESMTPSA id hu7sm9367633wib.10.2014.04.12.01.40.36\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Sat, 12 Apr 2014 01:40:37 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] emacs: hello: bugfix: make alphabetically sorted saved\r
+ searches work\r
+Date: Sat, 12 Apr 2014 09:40:32 +0100\r
+Message-Id: <1397292033-26502-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.10.4\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: Sat, 12 Apr 2014 08:40:46 -0000\r
+\r
+My recent changes to the saved search format broke the alphabetically\r
+sorted saved sort option. This makes it work again.\r
+\r
+Also, since the saved-search list is no longer an alist change the\r
+names in the sort function to avoid confusion.\r
+---\r
+Thanks to Jani for pointing out the bug.\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+ emacs/notmuch-hello.el | 9 ++++++---\r
+ 1 file changed, 6 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 4900a24..fca2bcc 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -39,9 +39,12 @@ (defcustom notmuch-show-empty-saved-searches nil\r
+ :type 'boolean\r
+ :group 'notmuch-hello)\r
+ \r
+-(defun notmuch-sort-saved-searches (alist)\r
+- "Generate an alphabetically sorted saved searches alist."\r
+- (sort (copy-sequence alist) (lambda (a b) (string< (car a) (car b)))))\r
++(defun notmuch-sort-saved-searches (saved-searches)\r
++ "Generate an alphabetically sorted saved searches list."\r
++ (sort (copy-sequence saved-searches)\r
++ (lambda (a b)\r
++ (string< (notmuch-saved-search-get a :name)\r
++ (notmuch-saved-search-get b :name)))))\r
+ \r
+ (defcustom notmuch-saved-search-sort-function nil\r
+ "Function used to sort the saved searches for the notmuch-hello view.\r
+-- \r
+1.7.10.4\r
+\r