[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sorting with threads in Gnus
From: |
N. Raghavendra |
Subject: |
Re: Sorting with threads in Gnus |
Date: |
Sun, 28 Jul 2013 21:47:10 +0530 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) |
At 2013-07-28T14:45:00+02:00, Michael Heerdegen wrote:
> I think this does what you want (please load it after loading Gnus):
>
> (setq gnus-sort-gathered-threads-function
> #'gnus-thread-sort-by-number)
> (setq gnus-thread-sort-functions
> '((not gnus-thread-sort-by-number)))
>
> (defun gnus-sort-threads-recursive (threads func)
> (sort (mapcar (lambda (thread)
> (cons (car thread)
> (and (cdr thread)
> (gnus-sort-threads-recursive-1
> (cdr thread) func))))
> threads) func))
>
> (defun gnus-sort-threads-recursive-1 (threads func)
> (setq func (gnus-make-sort-function
> '(gnus-thread-sort-by-number)))
> (sort (mapcar (lambda (thread)
> (cons (car thread)
> (and (cdr thread)
> (gnus-sort-threads-recursive-1
> (cdr thread) func))))
> threads) func))
>
> Is that right?
Thanks. I'll try it and get back.
Best regards,
Raghu.
--
N. Raghavendra <raghu@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
- Re: Sorting with threads in Gnus, (continued)
- Re: Sorting with threads in Gnus, Eric Abrahamsen, 2013/07/27
- Re: Sorting with threads in Gnus, N. Raghavendra, 2013/07/26
- Re: Sorting with threads in Gnus, Tassilo Horn, 2013/07/27
- Re: Sorting with threads in Gnus, N. Raghavendra, 2013/07/27
- Re: Sorting with threads in Gnus, Tassilo Horn, 2013/07/29
- Re: Sorting with threads in Gnus, N. Raghavendra, 2013/07/29
- Re: Sorting with threads in Gnus, N. Raghavendra, 2013/07/28
- Re: Sorting with threads in Gnus, Michael Heerdegen, 2013/07/28
- Re: Sorting with threads in Gnus, N. Raghavendra, 2013/07/28
- Re: Sorting with threads in Gnus, Michael Heerdegen, 2013/07/28
- Re: Sorting with threads in Gnus,
N. Raghavendra <=
- Re: Sorting with threads in Gnus, Tassilo Horn, 2013/07/30
- Re: Sorting with threads in Gnus, Eric Abrahamsen, 2013/07/30
- Re: Sorting with threads in Gnus, Tassilo Horn, 2013/07/30
- Re: Sorting with threads in Gnus, Eric Abrahamsen, 2013/07/30
- Re: Sorting with threads in Gnus, N. Raghavendra, 2013/07/29
- Re: Sorting with threads in Gnus, Tassilo Horn, 2013/07/30
- Re: Sorting with threads in Gnus, N. Raghavendra, 2013/07/30
- Re: Sorting with threads in Gnus, Tassilo Horn, 2013/07/30