aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.el
diff options
context:
space:
mode:
authorGravatar Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2009-11-23 20:20:59 +0530
committerGravatar Carl Worth <cworth@cworth.org>2009-11-26 13:09:12 -0800
commitdc4d0a53a295e2df09d0ae79ded74f8d5fd0e1a4 (patch)
treecd20b7be37e4c5e47f135ab11bd910a9523fd85e /notmuch.el
parent5b7b5ce1ef815d05ca18498d65079f65a5c67e4e (diff)
notmuch.el: Use variable notmuch-search-oldest-first to decide the search order
Make sure we use notmuch-search-oldest-first to decide the how the search result should be displayed. This helps to set the value to nil and have latest mail shown first Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'notmuch.el')
-rw-r--r--notmuch.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/notmuch.el b/notmuch.el
index dd078967..d762c6fc 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -813,7 +813,8 @@ thread from that buffer can be show when done with this one)."
(fset 'notmuch-search-mode-map notmuch-search-mode-map)
(defvar notmuch-search-query-string)
-(defvar notmuch-search-oldest-first)
+(defvar notmuch-search-oldest-first t
+ "Show the oldest mail first in the search-mode")
(defun notmuch-search-scroll-up ()
@@ -1082,7 +1083,7 @@ current search results AND that are tagged with the given tag."
(defun notmuch ()
"Run notmuch to display all mail with tag of 'inbox'"
(interactive)
- (notmuch-search "tag:inbox" t))
+ (notmuch-search "tag:inbox" notmuch-search-oldest-first))
(setq mail-user-agent 'message-user-agent)
@@ -1152,7 +1153,7 @@ results for the search terms in that line.
(setq folder (notmuch-folder-find-name)))
(let ((search (assoc folder notmuch-folders)))
(if search
- (notmuch-search (cdr search) t))))
+ (notmuch-search (cdr search) notmuch-search-oldest-first))))
(defun notmuch-folder ()
"Show the notmuch folder view and update the displayed counts."