Re: Possible addtions to notmuch new ?
[notmuch-archives.git] / 6d / 22ac58e7cd1f1056183611af9e1fcb33f7baa1
1 Return-Path: <jani@nikula.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 894E3431FC0\r
6         for <notmuch@notmuchmail.org>; Tue,  2 Oct 2012 13:18:16 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id eSoTrw+1griN for <notmuch@notmuchmail.org>;\r
16         Tue,  2 Oct 2012 13:18:14 -0700 (PDT)\r
17 Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com\r
18         [209.85.216.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 73436431FBC\r
21         for <notmuch@notmuchmail.org>; Tue,  2 Oct 2012 13:18:14 -0700 (PDT)\r
22 Received: by mail-qa0-f46.google.com with SMTP id c26so1065259qad.5\r
23         for <notmuch@notmuchmail.org>; Tue, 02 Oct 2012 13:18:14 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=google.com; s=20120113;\r
26         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
27         :x-gm-message-state;\r
28         bh=LnTYcffzVUTwiOXt7Cbbjf0iwQrEpEtHEmRi1Beewxk=;\r
29         b=SvSoH1U/T+ZWTbKOOuKLefp00Ha3X7xLpVQ1Ix2LjfThv0d2hS1oXGQktlDPEYznRP\r
30         Wf35ytsAaJTpL+KxZzYQB6M2E/unCgMRtGKTMGkGG+JIOK3Q2JCuudLY5uPf78YPmf3j\r
31         n3Hyh1BwVDWcPTF5vUkb6aJXALGHu43dexP52r0Wwqlq1+Rnh22Oc3mjQfVU7nI1wmNi\r
32         5gdyb9qc6eR3k6F7zi3Tle7DUAHq0YRu2xAPP/tp8PeiE2bER6K8tvPuwN4ckrdsroK0\r
33         f+QUD5soIQJhAqj0F5W0v4jMumn3KBvK8/RIpId0sQNZVhk+SF0GH8MA9v0YEbOEZP/Y\r
34         hPcw==\r
35 Received: by 10.224.76.204 with SMTP id d12mr4040069qak.85.1349209093864;\r
36         Tue, 02 Oct 2012 13:18:13 -0700 (PDT)\r
37 Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3])\r
38         by mx.google.com with ESMTPS id c9sm3042058qeh.1.2012.10.02.13.18.12\r
39         (version=SSLv3 cipher=OTHER); Tue, 02 Oct 2012 13:18:13 -0700 (PDT)\r
40 From: Jani Nikula <jani@nikula.org>\r
41 To: notmuch@notmuchmail.org\r
42 Subject: [PATCH 1/2] emacs: store sort order in the widgets in notmuch-hello\r
43 Date: Tue,  2 Oct 2012 22:18:02 +0200\r
44 Message-Id: <1349209083-7170-2-git-send-email-jani@nikula.org>\r
45 X-Mailer: git-send-email 1.7.2.5\r
46 In-Reply-To: <1349209083-7170-1-git-send-email-jani@nikula.org>\r
47 References: <1349209083-7170-1-git-send-email-jani@nikula.org>\r
48 X-Gm-Message-State:\r
49  ALoCoQm9X07wn5jIspC0fZ75ag5CSFfIulaZ9+eS5Vo11Vkal6QBlFb3DT8ELhJhLnquFTsUi9ox\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Tue, 02 Oct 2012 20:18:17 -0000\r
63 \r
64 Move decision about sort order from the notify handler to the widget\r
65 setup. This keeps the handler simple when more fancy stuff is added.\r
66 ---\r
67  emacs/notmuch-hello.el |    6 +++---\r
68  1 files changed, 3 insertions(+), 3 deletions(-)\r
69 \r
70 diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
71 index 052aaeb..532f06d 100644\r
72 --- a/emacs/notmuch-hello.el\r
73 +++ b/emacs/notmuch-hello.el\r
74 @@ -311,9 +311,8 @@ diagonal."\r
75           append (notmuch-hello-reflect-generate-row ncols nrows row list))))\r
76  \r
77  (defun notmuch-hello-widget-search (widget &rest ignore)\r
78 -  (notmuch-search (widget-get widget\r
79 -                             :notmuch-search-terms)\r
80 -                 notmuch-search-oldest-first\r
81 +  (notmuch-search (widget-get widget :notmuch-search-terms)\r
82 +                 (widget-get widget :notmuch-search-oldest-first)\r
83                   nil nil #'notmuch-hello-search-continuation))\r
84  \r
85  (defun notmuch-saved-search-count (search)\r
86 @@ -434,6 +433,7 @@ Such a list can be computed with `notmuch-hello-query-counts'."\r
87                 (widget-create 'push-button\r
88                                :notify #'notmuch-hello-widget-search\r
89                                :notmuch-search-terms query\r
90 +                              :notmuch-search-oldest-first notmuch-search-oldest-first\r
91                                name)\r
92                 (setq column-indent\r
93                       (1+ (max 0 (- column-width (length name)))))))\r
94 -- \r
95 1.7.2.5\r
96 \r