Gnus development mailing list
 help / color / mirror / Atom feed
* sort search output by date
@ 2014-10-21  3:23 Nick Dokos
  2014-10-23  5:34 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2014-10-21  3:23 UTC (permalink / raw)
  To: ding

When I do a gmane nnir search with G G, the resulting nnir group is in
some random(?) order.

An imap search returned an almost sorted buffer: a sorted bunch at the
beginning, a sorted bunch at the end, but a couple of messages between
the two that were out of order - that was a single example though: I
don't know how general this behavior is.

How do I get the nnir summary buffer sorted by date?

Thanks,
-- 
Nick






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

* Re: sort search output by date
  2014-10-21  3:23 sort search output by date Nick Dokos
@ 2014-10-23  5:34 ` Nick Dokos
  2014-10-23  6:09   ` Igor Sosa Mayor
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2014-10-23  5:34 UTC (permalink / raw)
  To: ding

Nick Dokos <ndokos@gmail.com> writes:

> When I do a gmane nnir search with G G, the resulting nnir group is in
> some random(?) order.
>
> An imap search returned an almost sorted buffer: a sorted bunch at the
> beginning, a sorted bunch at the end, but a couple of messages between
> the two that were out of order - that was a single example though: I
> don't know how general this behavior is.
>
> How do I get the nnir summary buffer sorted by date?
>

I didn't find a hook or option to do that, so in the end I added
gnus-summary-sort-by-date as an :after advice to
gnus-group-make-nnir-group.

-- 
Nick




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

* Re: sort search output by date
  2014-10-23  5:34 ` Nick Dokos
@ 2014-10-23  6:09   ` Igor Sosa Mayor
  0 siblings, 0 replies; 3+ messages in thread
From: Igor Sosa Mayor @ 2014-10-23  6:09 UTC (permalink / raw)
  To: ding

Nick Dokos <ndokos@gmail.com> writes:

> Nick Dokos <ndokos@gmail.com> writes:
>
>> When I do a gmane nnir search with G G, the resulting nnir group is in
>> some random(?) order.
>>
>> An imap search returned an almost sorted buffer: a sorted bunch at the
>> beginning, a sorted bunch at the end, but a couple of messages between
>> the two that were out of order - that was a single example though: I
>> don't know how general this behavior is.
>>
>> How do I get the nnir summary buffer sorted by date?
>>
>
> I didn't find a hook or option to do that, so in the end I added
> gnus-summary-sort-by-date as an :after advice to
> gnus-group-make-nnir-group.

I have something like this...

--8<---------------cut here---------------start------------->8---
(add-hook
 'gnus-summary-mode-hook
 (lambda ()
   (when (string-match "^gwene.*" gnus-newsgroup-name)
     (make-local-variable 'gnus-show-threads)
     (make-local-variable 'gnus-use-adaptive-scoring)
     (make-local-variable 'gnus-use-scoring)
     (make-local-variable 'gnus-score-find-score-files-function)
     (setq gnus-show-threads nil
	   gnus-use-adaptive-scoring nil)
;	   gnus-use-scoring nil)
     (gnus-summary-sort-by-date))))

--8<---------------cut here---------------end--------------->8---

maybe you can adapt it...
-- 
:: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::




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

end of thread, other threads:[~2014-10-23  6:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-21  3:23 sort search output by date Nick Dokos
2014-10-23  5:34 ` Nick Dokos
2014-10-23  6:09   ` Igor Sosa Mayor

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 NNTP newsgroup(s).