[notmuch] [PATCH] notmuch.el: Use variable notmuch-search-oldest-first to decide...
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 23 Nov 2009 14:50:59 +0000 (20:20 +0530)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:41 +0000 (09:35 -0800)
61/f9172318b000363abe16dd42e21479b0c3e225 [new file with mode: 0644]

diff --git a/61/f9172318b000363abe16dd42e21479b0c3e225 b/61/f9172318b000363abe16dd42e21479b0c3e225
new file mode 100644 (file)
index 0000000..bc21c32
--- /dev/null
@@ -0,0 +1,94 @@
+Return-Path: <aneesh.kumar@linux.vnet.ibm.com>\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 9A2E5431FBF\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 06:51:09 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\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 5ujliMmazqMa for <notmuch@notmuchmail.org>;\r
+       Mon, 23 Nov 2009 06:51:08 -0800 (PST)\r
+Received: from e28smtp09.in.ibm.com (e28smtp09.in.ibm.com [122.248.162.9])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4C548431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 06:51:07 -0800 (PST)\r
+Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58])\r
+       by e28smtp09.in.ibm.com (8.14.3/8.13.1) with ESMTP id nANEVsjs017324\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 20:01:54 +0530\r
+Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63])\r
+       by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id\r
+       nANEp46Y2314320\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 20:21:04 +0530\r
+Received: from d28av01.in.ibm.com (loopback [127.0.0.1])\r
+       by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id\r
+       nANEp4ED026132\r
+       for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 20:21:04 +0530\r
+Received: from localhost.localdomain ([9.77.127.154])\r
+       by d28av01.in.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id\r
+       nANEp2Aa025619; Mon, 23 Nov 2009 20:21:03 +0530\r
+From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>\r
+To: notmuch@notmuchmail.org\r
+Date: Mon, 23 Nov 2009 20:20:59 +0530\r
+Message-Id:\r
+ <1258987859-25557-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com>\r
+X-Mailer: git-send-email 1.6.5.2.74.g610f9\r
+Subject: [notmuch] [PATCH] notmuch.el: Use variable\r
+       notmuch-search-oldest-first to decide the search order\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.12\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: Mon, 23 Nov 2009 14:51:09 -0000\r
+\r
+Make sure we use notmuch-search-oldest-first to decide the how\r
+the search result should be displayed. This helps to set the\r
+value to nil and have latest mail shown first\r
+\r
+Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>\r
+---\r
+ notmuch.el |    7 ++++---\r
+ 1 files changed, 4 insertions(+), 3 deletions(-)\r
+\r
+diff --git a/notmuch.el b/notmuch.el\r
+index af4ceec..5582132 100644\r
+--- a/notmuch.el\r
++++ b/notmuch.el\r
+@@ -840,7 +840,8 @@ thread from that buffer can be show when done with this one)."\r
+ (fset 'notmuch-search-mode-map notmuch-search-mode-map)\r
\r
+ (defvar notmuch-search-query-string)\r
+-(defvar notmuch-search-oldest-first)\r
++(defvar notmuch-search-oldest-first t\r
++  "Show the oldest mail first in the search-mode")\r
\r
+ (defun notmuch-search-scroll-up ()\r
+   "Scroll up, moving point to last message in thread if at end."\r
+@@ -1106,7 +1107,7 @@ current search results AND that are tagged with the given tag."\r
+ (defun notmuch ()\r
+   "Run notmuch to display all mail with tag of 'inbox'"\r
+   (interactive)\r
+-  (notmuch-search "tag:inbox" t))\r
++  (notmuch-search "tag:inbox" notmuch-search-oldest-first))\r
\r
+ (setq mail-user-agent 'message-user-agent)\r
\r
+@@ -1176,7 +1177,7 @@ results for the search terms in that line.\r
+       (setq folder (notmuch-folder-find-name)))\r
+   (let ((search (assoc folder notmuch-folders)))\r
+     (if search\r
+-      (notmuch-search (cdr search) t))))\r
++      (notmuch-search (cdr search) notmuch-search-oldest-first))))\r
\r
+ (defun notmuch-folder ()\r
+   "Show the notmuch folder view and update the displayed counts."\r
+-- \r
+1.6.5.2.74.g610f9\r
+\r