--- /dev/null
+Return-Path: <amdragon@mit.edu>\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 16DB8431FAE\r
+ for <notmuch@notmuchmail.org>; Thu, 29 Aug 2013 09:26:16 -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 OC6qSCHGguG4 for <notmuch@notmuchmail.org>;\r
+ Thu, 29 Aug 2013 09:26:11 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-8.mit.edu (dmz-mailsec-scanner-8.mit.edu\r
+ [18.7.68.37])\r
+ by olra.theworths.org (Postfix) with ESMTP id 7A938431FC4\r
+ for <notmuch@notmuchmail.org>; Thu, 29 Aug 2013 09:26:05 -0700 (PDT)\r
+X-AuditID: 12074425-b7f0c8e000000953-94-521f761d6704\r
+Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
+ by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id 93.41.02387.D167F125; Thu, 29 Aug 2013 12:26:05 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+ by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r7TGQ4KE018779; \r
+ Thu, 29 Aug 2013 12:26:04 -0400\r
+Received: from drake.dyndns.org\r
+ (216-15-114-40.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
+ [216.15.114.40]) (authenticated bits=0)\r
+ (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r7TGQ1cx014989\r
+ (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
+ Thu, 29 Aug 2013 12:26:02 -0400\r
+Received: from amthrax by drake.dyndns.org with local (Exim 4.77)\r
+ (envelope-from <amdragon@mit.edu>)\r
+ id 1VF52m-0007Wi-U6; Thu, 29 Aug 2013 12:26:00 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/9] emacs: Consistently use configured sort order\r
+Date: Thu, 29 Aug 2013 12:25:49 -0400\r
+Message-Id: <1377793557-28878-2-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <1377793557-28878-1-git-send-email-amdragon@mit.edu>\r
+References: <1377793557-28878-1-git-send-email-amdragon@mit.edu>\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsUixG6nritbJh9ksGwbq8X1mzOZHRg9nq26\r
+ xRzAGMVlk5Kak1mWWqRvl8CVcWvqXvaCXTwVrVeuMDYwvubsYuTkkBAwkXj/5QULhC0mceHe\r
+ erYuRi4OIYF9jBKL1jxlhXA2MkpM3jCFGcK5wySx6sokNpAWIYG5jBIb7rqA2GwCGhLb9i9n\r
+ BLFFBKQldt6dDdTNwcEsoCbxp0sFJCws4CQxeXMj0Bx2DhYBVYm/MiBRXgEHie+3G6BuUJTo\r
+ fjYBbDingKNE/923LBCLHCT+XHzKPoGRfwEjwypG2ZTcKt3cxMyc4tRk3eLkxLy81CJdC73c\r
+ zBK91JTSTYzggHFR3cE44ZDSIUYBDkYlHt6OQPkgIdbEsuLK3EOMkhxMSqK8gSVAIb6k/JTK\r
+ jMTijPii0pzU4kOMEhzMSiK8bzmBcrwpiZVVqUX5MClpDhYlcd7nT88GCgmkJ5akZqemFqQW\r
+ wWRlODiUJHjjS4EaBYtS01Mr0jJzShDSTBycIMN5gIZbgdTwFhck5hZnpkPkTzEqSonzmoEk\r
+ BEASGaV5cL2wiH7FKA70ijBvGEgVDzAZwHW/AhrMBDR4Qr4cyOCSRISUVANjY9dBpTQrF9nH\r
+ NyuXufZoe/DclDnWrHMvcHIhZ+HR1XHrLsiKGCzo6l6w4jf/l98znxyokxfNqja5xClXlW/c\r
+ 5+XlphrrG2PB+nj2hDUn12k8rf3S2ZTx8B5TgOD25n/206uEfFgzjrn33puvIB4XeOnCjdLv\r
+ 8VMnuip/CPtb+UN0le+Rx3OUWIozEg21mIuKEwEpa6xswwIAAA==\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: Thu, 29 Aug 2013 16:26:16 -0000\r
+\r
+Previously, if `notmuch-search' was called interactively (bound to "s"\r
+in search and show, but not hello), it would always use newest-first.\r
+However, `notmuch-hello-search' (bound to "s" in hello) and\r
+`notmuch-hello-widget-search` would call it with the user-configured\r
+sort order. This inconsistency seems unintentional, so change\r
+`notmuch-search' to use the user-configured sort order when called\r
+interactively.\r
+---\r
+ emacs/notmuch.el | 14 ++++++++++++--\r
+ 1 file changed, 12 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch.el b/emacs/notmuch.el\r
+index f3ce840..c964186 100644\r
+--- a/emacs/notmuch.el\r
++++ b/emacs/notmuch.el\r
+@@ -906,8 +906,18 @@ Other optional parameters are used as follows:\r
+ target-thread: A thread ID (without the thread: prefix) that will be made\r
+ current if it appears in the search results.\r
+ target-line: The line number to move to if the target thread does not\r
+- appear in the search results."\r
+- (interactive)\r
++ appear in the search results.\r
++\r
++When called interactively, this will prompt for a query and use\r
++the configured default sort order."\r
++ (interactive\r
++ (list\r
++ ;; Prompt for a query\r
++ nil\r
++ ;; Use the default search order (if we're doing a search from a\r
++ ;; search buffer, ignore any buffer-local overrides)\r
++ (default-value notmuch-search-oldest-first)))\r
++\r
+ (let* ((query (or query (notmuch-read-query "Notmuch search: ")))\r
+ (buffer (get-buffer-create (notmuch-search-buffer-title query))))\r
+ (switch-to-buffer buffer)\r
+-- \r
+1.7.10.4\r
+\r