Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 1d / 3904a07fa789ec58e1fb8bc6a14c066fac6052
1 Return-Path: <aneesh.kumar@linux.vnet.ibm.com>\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 9E201431FC3\r
6         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 20:58:19 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id YqkbDf9-Tn49 for <notmuch@notmuchmail.org>;\r
11         Tue, 24 Nov 2009 20:58:19 -0800 (PST)\r
12 Received: from e23smtp05.au.ibm.com (e23smtp05.au.ibm.com [202.81.31.147])\r
13         by olra.theworths.org (Postfix) with ESMTP id 9B75E431FAE\r
14         for <notmuch@notmuchmail.org>; Tue, 24 Nov 2009 20:58:18 -0800 (PST)\r
15 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247])\r
16         by e23smtp05.au.ibm.com (8.14.3/8.13.1) with ESMTP id nAP4tHq6008192\r
17         for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:55:17 +1100\r
18 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97])\r
19         by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id\r
20         nAP4sk641552426\r
21         for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:54:46 +1100\r
22 Received: from d23av03.au.ibm.com (loopback [127.0.0.1])\r
23         by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id\r
24         nAP4wGnv012248\r
25         for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 15:58:16 +1100\r
26 Received: from localhost.localdomain ([9.124.31.111])\r
27         by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id\r
28         nAP4wE0O012225; Wed, 25 Nov 2009 15:58:15 +1100\r
29 From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>\r
30 To: notmuch@notmuchmail.org\r
31 Date: Wed, 25 Nov 2009 10:28:13 +0530\r
32 Message-Id:\r
33  <1259125093-18743-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>\r
34 X-Mailer: git-send-email 1.6.5.2.74.g610f9\r
35 Subject: [notmuch] [PATCH -v2] notmuch.el: Use variable\r
36         notmuch-search-oldest-first to decide the search order\r
37 X-BeenThere: notmuch@notmuchmail.org\r
38 X-Mailman-Version: 2.1.12\r
39 Precedence: list\r
40 List-Id: "Use and development of the notmuch mail system."\r
41         <notmuch.notmuchmail.org>\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
45 List-Post: <mailto:notmuch@notmuchmail.org>\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
49 X-List-Received-Date: Wed, 25 Nov 2009 04:58:19 -0000\r
50 \r
51 Make sure we use notmuch-search-oldest-first to decide the how\r
52 the search result should be displayed. This helps to set the\r
53 value to nil and have latest mail shown first. This also fix the\r
54 notmuch-folder mode to use the right search order when we select\r
55 a folder. Also the notmuch command is fixed to use the right ordering.\r
56 \r
57 \r
58 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>\r
59 ---\r
60  notmuch.el |    7 ++++---\r
61  1 files changed, 4 insertions(+), 3 deletions(-)\r
62 \r
63 diff --git a/notmuch.el b/notmuch.el\r
64 index 5737f77..45c3dc6 100644\r
65 --- a/notmuch.el\r
66 +++ b/notmuch.el\r
67 @@ -817,7 +817,8 @@ thread from that buffer can be show when done with this one)."\r
68  (fset 'notmuch-search-mode-map notmuch-search-mode-map)\r
69  \r
70  (defvar notmuch-search-query-string)\r
71 -(defvar notmuch-search-oldest-first)\r
72 +(defvar notmuch-search-oldest-first t\r
73 +  "Show the oldest mail first in the search-mode")\r
74  \r
75  \r
76  (defun notmuch-search-scroll-up ()\r
77 @@ -1129,7 +1130,7 @@ current search results AND that are tagged with the given tag."\r
78  (defun notmuch ()\r
79    "Run notmuch to display all mail with tag of 'inbox'"\r
80    (interactive)\r
81 -  (notmuch-search "tag:inbox" t))\r
82 +  (notmuch-search "tag:inbox" notmuch-search-oldest-first))\r
83  \r
84  (setq mail-user-agent 'message-user-agent)\r
85  \r
86 @@ -1199,7 +1200,7 @@ results for the search terms in that line.\r
87        (setq folder (notmuch-folder-find-name)))\r
88    (let ((search (assoc folder notmuch-folders)))\r
89      (if search\r
90 -       (notmuch-search (cdr search) t))))\r
91 +       (notmuch-search (cdr search) notmuch-search-oldest-first))))\r
92  \r
93  (defun notmuch-folder ()\r
94    "Show the notmuch folder view and update the displayed counts."\r
95 -- \r
96 1.6.5.2.74.g610f9\r
97 \r