unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* search order
@ 2013-08-05 14:45 Ramakrishnan Muthukrishnan
  2013-08-18 14:32 ` David Bremner
  2013-09-10 11:23 ` David Bremner
  0 siblings, 2 replies; 4+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2013-08-05 14:45 UTC (permalink / raw)
  To: notmuch

Hi,

I see something strange when I do a search with M-x notmuch-search from
the notmuch-hello vs hitting "s" on the notmuch-hello buffer. 

If I startup notmuch and then do a M-x notmuch-search and then *, I see
the messages with the newest on the top. But if I instead, startup
notmuch and then hit "s", I see that the new messages are at the
bottom. The value of notmuch-search-oldest-first is t. 

Ramakrishnan

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

* Re: search order
  2013-08-05 14:45 search order Ramakrishnan Muthukrishnan
@ 2013-08-18 14:32 ` David Bremner
  2013-09-10 11:23 ` David Bremner
  1 sibling, 0 replies; 4+ messages in thread
From: David Bremner @ 2013-08-18 14:32 UTC (permalink / raw)
  To: Ramakrishnan Muthukrishnan, notmuch

Ramakrishnan Muthukrishnan <ram@rkrishnan.org> writes:

> If I startup notmuch and then do a M-x notmuch-search and then *, I see
> the messages with the newest on the top. But if I instead, startup
> notmuch and then hit "s", I see that the new messages are at the
> bottom. The value of notmuch-search-oldest-first is t. 

I had a quick look at this, and I think the issue is as follows:
notmuch-search takes an extra parameter for the order, and does not
directly look at notmuch-search-oldest-first.  notmuch-hello-search
works better in this case because it calls notmuch-search with
notmuch-search-oldest-first as one of it's parameters. The simplest
solution would be to make another helper function like

(defun notmuch-search-interactive ()
  (interactive)
  (notmuch-search nil notmuch-search-oldest-first))

I don't know if notmuch-search should remain interactive, or perhaps be
renamed and have interactive removed (with the new helper replacing it).
I guess that might break some user code.

d

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

* Re: search order
  2013-08-05 14:45 search order Ramakrishnan Muthukrishnan
  2013-08-18 14:32 ` David Bremner
@ 2013-09-10 11:23 ` David Bremner
  2013-09-10 14:28   ` Ramakrishnan Muthukrishnan
  1 sibling, 1 reply; 4+ messages in thread
From: David Bremner @ 2013-09-10 11:23 UTC (permalink / raw)
  To: Ramakrishnan Muthukrishnan, notmuch

Ramakrishnan Muthukrishnan <ram@rkrishnan.org> writes:

>
> If I startup notmuch and then do a M-x notmuch-search and then *, I see
> the messages with the newest on the top. But if I instead, startup
> notmuch and then hit "s", I see that the new messages are at the
> bottom. The value of notmuch-search-oldest-first is t. 
>

This should be fixed in the latest git master. Thanks for the report,
and thanks to Austin for the fix.

d

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

* Re: search order
  2013-09-10 11:23 ` David Bremner
@ 2013-09-10 14:28   ` Ramakrishnan Muthukrishnan
  0 siblings, 0 replies; 4+ messages in thread
From: Ramakrishnan Muthukrishnan @ 2013-09-10 14:28 UTC (permalink / raw)
  To: David Bremner, notmuch

David Bremner <david@tethera.net> writes:

> Ramakrishnan Muthukrishnan <ram@rkrishnan.org> writes:
>
>>
>> If I startup notmuch and then do a M-x notmuch-search and then *, I see
>> the messages with the newest on the top. But if I instead, startup
>> notmuch and then hit "s", I see that the new messages are at the
>> bottom. The value of notmuch-search-oldest-first is t. 
>>
>
> This should be fixed in the latest git master. Thanks for the report,
> and thanks to Austin for the fix.

:) Thanks.

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

end of thread, other threads:[~2013-09-10 14:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 14:45 search order Ramakrishnan Muthukrishnan
2013-08-18 14:32 ` David Bremner
2013-09-10 11:23 ` David Bremner
2013-09-10 14:28   ` Ramakrishnan Muthukrishnan

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).