unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH -v2] notmuch.el: Use variable notmuch-search-oldest-first to decide the search order
@ 2009-11-25  4:58 Aneesh Kumar K.V
  2009-11-28  1:28 ` Carl Worth
  0 siblings, 1 reply; 2+ messages in thread
From: Aneesh Kumar K.V @ 2009-11-25  4:58 UTC (permalink / raw)
  To: notmuch

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. This also fix the
notmuch-folder mode to use the right search order when we select
a folder. Also the notmuch command is fixed to use the right ordering.


Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
 notmuch.el |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/notmuch.el b/notmuch.el
index 5737f77..45c3dc6 100644
--- a/notmuch.el
+++ b/notmuch.el
@@ -817,7 +817,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 ()
@@ -1129,7 +1130,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)
 
@@ -1199,7 +1200,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."
-- 
1.6.5.2.74.g610f9

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -v2] notmuch.el: Use variable notmuch-search-oldest-first to decide the search order
  2009-11-25  4:58 [PATCH -v2] notmuch.el: Use variable notmuch-search-oldest-first to decide the search order Aneesh Kumar K.V
@ 2009-11-28  1:28 ` Carl Worth
  0 siblings, 0 replies; 2+ messages in thread
From: Carl Worth @ 2009-11-28  1:28 UTC (permalink / raw)
  To: Aneesh Kumar K.V, notmuch

On Wed, 25 Nov 2009 10:28:13 +0530, "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> wrote:
> 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. This also fix the
> notmuch-folder mode to use the right search order when we select
> a folder. Also the notmuch command is fixed to use the right ordering.

Thanks for the updated commit message. Unfortunately, I'd already
committed the earlier version of this patch.

I generally make passes over my queue of patches to review in
chronological order, (by thread of course). So when anyone has an
updated version of an earlier patch, it will help if the later patches
are sent as replies to the earlier patches.

Thanks,

-Carl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-28  1:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-25  4:58 [PATCH -v2] notmuch.el: Use variable notmuch-search-oldest-first to decide the search order Aneesh Kumar K.V
2009-11-28  1:28 ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).