Gnus development mailing list
 help / color / mirror / Atom feed
* thread sorting
@ 2011-05-03  7:16 Peter Münster
  2011-05-03 12:28 ` Tassilo Horn
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Münster @ 2011-05-03  7:16 UTC (permalink / raw)
  To: ding

Hello,

How can I sort threads by date, so that the last message (by date) of a
thread will be always at the bottom of the thread and instead of sorting
threads by the root, I would like to sort them by the last message.

Example:

 some subject
 ├►
 │└►   (A)
 └►
  └►   (B)
 some other subject
 └►
  └►   (C)

---> C later than B later than A

(I'm coming from alpine and mutt, where this was easy to do...)

TIA for any hints!

-- 
           Peter




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

* Re: thread sorting
  2011-05-03  7:16 thread sorting Peter Münster
@ 2011-05-03 12:28 ` Tassilo Horn
  2011-05-03 13:21   ` Peter Münster
  0 siblings, 1 reply; 10+ messages in thread
From: Tassilo Horn @ 2011-05-03 12:28 UTC (permalink / raw)
  To: Peter Münster; +Cc: ding

pmlists@free.fr (Peter Münster) writes:

> How can I sort threads by date, so that the last message (by date) of
> a thread will be always at the bottom of the thread and instead of
> sorting threads by the root, I would like to sort them by the last
> message.
>
> Example:
>
>  some subject
>  ├►
>  │└►   (A)
>  └►
>   └►   (B)
>  some other subject
>  └►
>   └►   (C)
>
> ---> C later than B later than A

Have a look at:

,----[ C-h v gnus-thread-sort-functions RET ]
| gnus-thread-sort-functions is a variable defined in `gnus-sum.el'.
| Its value is (gnus-thread-sort-by-number
|  (not gnus-thread-sort-by-most-recent-date)
|  gnus-thread-sort-by-total-score)
`----

I sort by score, then by date of last article, then by number.  So you
most probably want something like:

(setq gnus-thread-sort-functions
      '(gnus-thread-sort-by-number
        (not gnus-thread-sort-by-most-recent-date)))

Bye,
Tassilo
-- 
Sent from my Emacs



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

* Re: thread sorting
  2011-05-03 12:28 ` Tassilo Horn
@ 2011-05-03 13:21   ` Peter Münster
  2011-05-03 18:04     ` Tassilo Horn
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Münster @ 2011-05-03 13:21 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

Tassilo Horn <tassilo@member.fsf.org> writes:

> |  (not gnus-thread-sort-by-most-recent-date)

That's it, thanks!

After reading

   "Note that sorting really is normally done by looking only at the
    roots of each thread."

I was quite sure, that it would be nearly impossible to do...

Thus, please find attached a little patch for the documentation.


[-- Attachment #2: git.diff --]
[-- Type: text/x-patch, Size: 1573 bytes --]

diff --git a/texi/ChangeLog b/texi/ChangeLog
index c9e56c4..0628e0d 100644
--- a/texi/ChangeLog
+++ b/texi/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-03  Peter Münster  <pmlists@free.fr>
+
+	* gnus.texi (Summary Buffer Lines):
+	gnus-summary-user-date-format-alist does not exist.
+	(Sorting the Summary Buffer): More about sorting threads.
+
 2011-04-14  Teodor Zlatanov  <tzz@lifelogs.com>
 
 	* gnus.texi (nnmairix caveats, Setup, Registry Article Refer Method)
diff --git a/texi/gnus.texi b/texi/gnus.texi
index e414508..b458ce6 100644
--- a/texi/gnus.texi
+++ b/texi/gnus.texi
@@ -4953,7 +4953,7 @@ Download mark.
 Desired cursor position (instead of after first colon).
 @item &user-date;
 Age sensitive date format.  Various date format is defined in
-@code{gnus-summary-user-date-format-alist}.
+@code{gnus-user-date-format-alist}.
 @item u
 User defined specifier.  The next character in the format string should
 be a letter.  Gnus will call the function
@@ -7340,7 +7340,9 @@ predicate functions include @code{gnus-thread-sort-by-number},
 
 Each function takes two threads and returns non-@code{nil} if the first
 thread should be sorted before the other.  Note that sorting really is
-normally done by looking only at the roots of each thread.
+normally done by looking only at the roots of each thread.  Exceptions
+to this rule are @code{gnus-thread-sort-by-most-recent-number} and
+@code{gnus-thread-sort-by-most-recent-date}.
 
 If you use more than one function, the primary sort key should be the
 last function in the list.  You should probably always include

[-- Attachment #3: Type: text/plain, Size: 22 bytes --]


-- 
           Peter

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

* Re: thread sorting
  2011-05-03 13:21   ` Peter Münster
@ 2011-05-03 18:04     ` Tassilo Horn
  2011-05-03 20:45       ` Reiner Steib
  0 siblings, 1 reply; 10+ messages in thread
From: Tassilo Horn @ 2011-05-03 18:04 UTC (permalink / raw)
  To: Peter Münster; +Cc: ding

pmlists@free.fr (Peter Münster) writes:

Hi Peter,

>> |  (not gnus-thread-sort-by-most-recent-date)
>
> That's it, thanks!

Great.

> After reading
>
>    "Note that sorting really is normally done by looking only at the
>     roots of each thread."
>
> I was quite sure, that it would be nearly impossible to do...
>
> Thus, please find attached a little patch for the documentation.

Applied!

Thank you a lot.

Bye,
Tassilo

BTW: If you would have sent a patch created with git format-patch, you'd
also be listed in the git logs as author.  Next time... :-)
-- 
Sent from my Emacs



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

* Re: thread sorting
  2011-05-03 18:04     ` Tassilo Horn
@ 2011-05-03 20:45       ` Reiner Steib
  2011-05-04  6:32         ` Tassilo Horn
  0 siblings, 1 reply; 10+ messages in thread
From: Reiner Steib @ 2011-05-03 20:45 UTC (permalink / raw)
  To: ding

On Tue, May 03 2011, Tassilo Horn wrote:

> pmlists@free.fr (Peter Münster) writes:
>> Thus, please find attached a little patch for the documentation.
>
> Applied!

Please mark it as a "tiny change" unless we have papers from Peter.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: thread sorting
  2011-05-03 20:45       ` Reiner Steib
@ 2011-05-04  6:32         ` Tassilo Horn
  2011-05-04  7:05           ` Peter Münster
  0 siblings, 1 reply; 10+ messages in thread
From: Tassilo Horn @ 2011-05-04  6:32 UTC (permalink / raw)
  To: ding

Reiner Steib <reinersteib+gmane@imap.cc> writes:

Hi Reiner,

>> pmlists@free.fr (Peter Münster) writes:
>>> Thus, please find attached a little patch for the documentation.
>>
>> Applied!
>
> Please mark it as a "tiny change" unless we have papers from Peter.

I don't know if we do have papers from him.  How can I find out?

And how do I mark it as tiny change?  Add a (tiny change) to the
ChangeLog?

Bye,
Tassilo
-- 
Sent from my Emacs



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

* Re: thread sorting
  2011-05-04  6:32         ` Tassilo Horn
@ 2011-05-04  7:05           ` Peter Münster
  2011-05-04  7:15             ` Tassilo Horn
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Münster @ 2011-05-04  7:05 UTC (permalink / raw)
  To: ding

Tassilo Horn <tassilo@member.fsf.org> writes:

>> Please mark it as a "tiny change" unless we have papers from Peter.
>
> I don't know if we do have papers from him.  How can I find out?

I don't think so... What kind of papers?  Anyway, it *is* a tiny change.
I don't see the relationship between "papers" and "tiny"...

-- 
           Peter




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

* Re: thread sorting
  2011-05-04  7:05           ` Peter Münster
@ 2011-05-04  7:15             ` Tassilo Horn
  2011-05-04  7:55               ` David Engster
  0 siblings, 1 reply; 10+ messages in thread
From: Tassilo Horn @ 2011-05-04  7:15 UTC (permalink / raw)
  To: Peter Münster; +Cc: ding

pmlists@free.fr (Peter Münster) writes:

Hi Peter,

>>> Please mark it as a "tiny change" unless we have papers from Peter.
>>
>> I don't know if we do have papers from him.  How can I find out?
>
> I don't think so... What kind of papers?

Copyright assignment papers for Gnus (or Emacs).

  http://www.gnu.org/prep/maintain/html_node/Copyright-Papers.html

> Anyway, it *is* a tiny change.  I don't see the relationship between
> "papers" and "tiny"...

Yeah, for tiny changes you don't have to sign papers.  But Reiner
suggested that tiny changes have to be "marked" as such, and I have no
clue what marking means in this context.

Bye,
Tassilo
-- 
Sent from my Emacs



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

* Re: thread sorting
  2011-05-04  7:15             ` Tassilo Horn
@ 2011-05-04  7:55               ` David Engster
  2011-05-04 10:35                 ` Tassilo Horn
  0 siblings, 1 reply; 10+ messages in thread
From: David Engster @ 2011-05-04  7:55 UTC (permalink / raw)
  To: ding

Tassilo Horn writes:
> pmlists@free.fr (Peter Münster) writes:
>> Anyway, it *is* a tiny change.  I don't see the relationship between
>> "papers" and "tiny"...
>
> Yeah, for tiny changes you don't have to sign papers.  But Reiner
> suggested that tiny changes have to be "marked" as such, and I have no
> clue what marking means in this context.

Just write "(tiny change)" in the ChangeLog. See

http://www.gnu.org/prep/maintain/html_node/Legally-Significant.html

-David



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

* Re: thread sorting
  2011-05-04  7:55               ` David Engster
@ 2011-05-04 10:35                 ` Tassilo Horn
  0 siblings, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2011-05-04 10:35 UTC (permalink / raw)
  To: ding

David Engster <deng@randomsample.de> writes:

Hi David,

>> Yeah, for tiny changes you don't have to sign papers.  But Reiner
>> suggested that tiny changes have to be "marked" as such, and I have
>> no clue what marking means in this context.
>
> Just write "(tiny change)" in the ChangeLog. See
>
> http://www.gnu.org/prep/maintain/html_node/Legally-Significant.html

Thanks for the pointer.  Done!

Bye,
Tassilo
-- 
Sent from my Emacs



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

end of thread, other threads:[~2011-05-04 10:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-03  7:16 thread sorting Peter Münster
2011-05-03 12:28 ` Tassilo Horn
2011-05-03 13:21   ` Peter Münster
2011-05-03 18:04     ` Tassilo Horn
2011-05-03 20:45       ` Reiner Steib
2011-05-04  6:32         ` Tassilo Horn
2011-05-04  7:05           ` Peter Münster
2011-05-04  7:15             ` Tassilo Horn
2011-05-04  7:55               ` David Engster
2011-05-04 10:35                 ` Tassilo Horn

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