--- /dev/null
+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 894E3431FC0\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Oct 2012 13:18: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 eSoTrw+1griN for <notmuch@notmuchmail.org>;\r
+ Tue, 2 Oct 2012 13:18:14 -0700 (PDT)\r
+Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com\r
+ [209.85.216.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 73436431FBC\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Oct 2012 13:18:14 -0700 (PDT)\r
+Received: by mail-qa0-f46.google.com with SMTP id c26so1065259qad.5\r
+ for <notmuch@notmuchmail.org>; Tue, 02 Oct 2012 13:18:14 -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:in-reply-to:references\r
+ :x-gm-message-state;\r
+ bh=LnTYcffzVUTwiOXt7Cbbjf0iwQrEpEtHEmRi1Beewxk=;\r
+ b=SvSoH1U/T+ZWTbKOOuKLefp00Ha3X7xLpVQ1Ix2LjfThv0d2hS1oXGQktlDPEYznRP\r
+ Wf35ytsAaJTpL+KxZzYQB6M2E/unCgMRtGKTMGkGG+JIOK3Q2JCuudLY5uPf78YPmf3j\r
+ n3Hyh1BwVDWcPTF5vUkb6aJXALGHu43dexP52r0Wwqlq1+Rnh22Oc3mjQfVU7nI1wmNi\r
+ 5gdyb9qc6eR3k6F7zi3Tle7DUAHq0YRu2xAPP/tp8PeiE2bER6K8tvPuwN4ckrdsroK0\r
+ f+QUD5soIQJhAqj0F5W0v4jMumn3KBvK8/RIpId0sQNZVhk+SF0GH8MA9v0YEbOEZP/Y\r
+ hPcw==\r
+Received: by 10.224.76.204 with SMTP id d12mr4040069qak.85.1349209093864;\r
+ Tue, 02 Oct 2012 13:18:13 -0700 (PDT)\r
+Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
+ by mx.google.com with ESMTPS id c9sm3042058qeh.1.2012.10.02.13.18.12\r
+ (version=SSLv3 cipher=OTHER); Tue, 02 Oct 2012 13:18:13 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] emacs: store sort order in the widgets in notmuch-hello\r
+Date: Tue, 2 Oct 2012 22:18:02 +0200\r
+Message-Id: <1349209083-7170-2-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.2.5\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
+X-Gm-Message-State:\r
+ ALoCoQm9X07wn5jIspC0fZ75ag5CSFfIulaZ9+eS5Vo11Vkal6QBlFb3DT8ELhJhLnquFTsUi9ox\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:17 -0000\r
+\r
+Move decision about sort order from the notify handler to the widget\r
+setup. This keeps the handler simple when more fancy stuff is added.\r
+---\r
+ emacs/notmuch-hello.el | 6 +++---\r
+ 1 files changed, 3 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index 052aaeb..532f06d 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -311,9 +311,8 @@ diagonal."\r
+ append (notmuch-hello-reflect-generate-row ncols nrows row list))))\r
+ \r
+ (defun notmuch-hello-widget-search (widget &rest ignore)\r
+- (notmuch-search (widget-get widget\r
+- :notmuch-search-terms)\r
+- notmuch-search-oldest-first\r
++ (notmuch-search (widget-get widget :notmuch-search-terms)\r
++ (widget-get widget :notmuch-search-oldest-first)\r
+ nil nil #'notmuch-hello-search-continuation))\r
+ \r
+ (defun notmuch-saved-search-count (search)\r
+@@ -434,6 +433,7 @@ Such a list can be computed with `notmuch-hello-query-counts'."\r
+ (widget-create 'push-button\r
+ :notify #'notmuch-hello-widget-search\r
+ :notmuch-search-terms query\r
++ :notmuch-search-oldest-first notmuch-search-oldest-first\r
+ name)\r
+ (setq column-indent\r
+ (1+ (max 0 (- column-width (length name)))))))\r
+-- \r
+1.7.2.5\r
+\r