Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 61 / f9172318b000363abe16dd42e21479b0c3e225
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 9A2E5431FBF\r
6         for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 06:51:09 -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 5ujliMmazqMa for <notmuch@notmuchmail.org>;\r
11         Mon, 23 Nov 2009 06:51:08 -0800 (PST)\r
12 Received: from e28smtp09.in.ibm.com (e28smtp09.in.ibm.com [122.248.162.9])\r
13         by olra.theworths.org (Postfix) with ESMTP id 4C548431FBC\r
14         for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 06:51:07 -0800 (PST)\r
15 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58])\r
16         by e28smtp09.in.ibm.com (8.14.3/8.13.1) with ESMTP id nANEVsjs017324\r
17         for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 20:01:54 +0530\r
18 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63])\r
19         by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id\r
20         nANEp46Y2314320\r
21         for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 20:21:04 +0530\r
22 Received: from d28av01.in.ibm.com (loopback [127.0.0.1])\r
23         by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id\r
24         nANEp4ED026132\r
25         for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 20:21:04 +0530\r
26 Received: from localhost.localdomain ([9.77.127.154])\r
27         by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id\r
28         nANEp2Aa025619; Mon, 23 Nov 2009 20:21:03 +0530\r
29 From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>\r
30 To: notmuch@notmuchmail.org\r
31 Date: Mon, 23 Nov 2009 20:20:59 +0530\r
32 Message-Id:\r
33  <1258987859-25557-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] 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: Mon, 23 Nov 2009 14:51:09 -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\r
54 \r
55 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>\r
56 ---\r
57  notmuch.el |    7 ++++---\r
58  1 files changed, 4 insertions(+), 3 deletions(-)\r
59 \r
60 diff --git a/notmuch.el b/notmuch.el\r
61 index af4ceec..5582132 100644\r
62 --- a/notmuch.el\r
63 +++ b/notmuch.el\r
64 @@ -840,7 +840,8 @@ thread from that buffer can be show when done with this one)."\r
65  (fset 'notmuch-search-mode-map notmuch-search-mode-map)\r
66  \r
67  (defvar notmuch-search-query-string)\r
68 -(defvar notmuch-search-oldest-first)\r
69 +(defvar notmuch-search-oldest-first t\r
70 +  "Show the oldest mail first in the search-mode")\r
71  \r
72  (defun notmuch-search-scroll-up ()\r
73    "Scroll up, moving point to last message in thread if at end."\r
74 @@ -1106,7 +1107,7 @@ current search results AND that are tagged with the given tag."\r
75  (defun notmuch ()\r
76    "Run notmuch to display all mail with tag of 'inbox'"\r
77    (interactive)\r
78 -  (notmuch-search "tag:inbox" t))\r
79 +  (notmuch-search "tag:inbox" notmuch-search-oldest-first))\r
80  \r
81  (setq mail-user-agent 'message-user-agent)\r
82  \r
83 @@ -1176,7 +1177,7 @@ results for the search terms in that line.\r
84        (setq folder (notmuch-folder-find-name)))\r
85    (let ((search (assoc folder notmuch-folders)))\r
86      (if search\r
87 -       (notmuch-search (cdr search) t))))\r
88 +       (notmuch-search (cdr search) notmuch-search-oldest-first))))\r
89  \r
90  (defun notmuch-folder ()\r
91    "Show the notmuch folder view and update the displayed counts."\r
92 -- \r
93 1.6.5.2.74.g610f9\r
94 \r