GNU bug report logs - #35513
(setq gnus-thread-sort-functions '(gnus-thread-sort-by-number)) seems not to work always.

Previous Next

Packages: emacs, gnus;

Reported by: Uwe Brauer <oub.oub.oub <at> gmail.com>

Date: Tue, 30 Apr 2019 22:01:01 UTC

Severity: minor

Tags: confirmed, wontfix

Found in version 5.13

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35513 in the body.
You can then email your comments to 35513 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#35513; Package emacs,gnus. (Tue, 30 Apr 2019 22:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Uwe Brauer <oub.oub.oub <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org. (Tue, 30 Apr 2019 22:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Uwe Brauer <oub.oub.oub <at> gmail.com>
To: submit <at> debbugs.gnu.org (The Gnus Bugfixing Girls + Boys)
Subject: (setq gnus-thread-sort-functions '(gnus-thread-sort-by-number)) seems
 not to work always.
Date: Tue, 30 Apr 2019 23:45:21 +0200

I have set

(setq gnus-thread-sort-functions '(gnus-thread-sort-by-number)) 
but also 
(setq gnus-thread-ignore-subject nil)


Now look at the following ordering when threading is on.



 89532 [  Uwe Braue] Uwe Brauer  [First message sent       ] Tue, 30 Apr 2019 23:27:28 +0200 4.6k 1   
     89534 [  Uwe Braue] Uwe Brauer  [                         ] Tue, 30 Apr 2019 23:27:59 +0200 8.1k 3   
         89536 [  Uwe Braue] Uwe Brauer  [                         ] Tue, 30 Apr 2019 23:28:33 +0200 16k ?   
 89540 [  Uwe Braue] Uwe Brauer  [[New subject] (was: First] Tue, 30 Apr 2019 23:32:05 +0200 12k ?   
 89538 [  Uwe Braue] Uwe Brauer  [I sent a new message whic] Tue, 30 Apr 2019 23:29:54 +0200 7.8k 1   
 89542 [  Uwe Braue] Uwe Brauer  [[New message references k] Tue, 30 Apr 2019 23:32:43 +0200 12k ?   

You will see that  89540 is ordered *before*  89538.

How did that happen? Here is a step by step instruction.
(setq gnus-thread-ignore-subject nil)

Sent some message to say your other email address and reply via followup
that gives 
 89532 [  Uwe Braue] Uwe Brauer  [First message sent       ] Tue, 30 Apr 2019 23:27:28 +0200 4.6k 1   
     89534 [  Uwe Braue] Uwe Brauer  [                         ] Tue, 30 Apr 2019 23:27:59 +0200 8.1k 3   
         89536 [  Uwe Braue] Uwe Brauer  [                         ] Tue, 30 Apr 2019 23:28:33 +0200 16k ?   

Then I sent a new message which  does not belong to the thread, that is 
 89538 [  Uwe Braue] Uwe Brauer  [I sent a new message whic] Tue, 30 Apr 2019 23:29:54 +0200 7.8k 1   

Now I reply to  89536, change the subject but leave the reference
intact, that results in   89540, placed *before* 89538, which is not
correct. 

I reply (followup again to message 89536, change the subject and remove
the reference that indeed message 89542 is ordered correctly.

I think the current behavior is not intuitive and should be changed:
Messages should be always ordered (in that setting I described above) by
their number independent whether it has it source in a thread.

Regards

Uwe Brauer 

Gnus v5.13
GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2018-04-26
200 news.gmane.org InterNetNews NNRP server INN 2.6.1 ready (posting ok)
100 Legal commands
  ARTICLE [message-ID|number]
  AUTHINFO USER name|PASS password|SASL mechanism [initial-response]|GENERIC program [argument ...]
  BODY [message-ID|number]
  CAPABILITIES [keyword]
  COMPRESS DEFLATE
  DATE
  GROUP newsgroup
  HDR header [message-ID|range]
  HEAD [message-ID|number]
  HELP
  IHAVE message-ID
  LAST
  LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|COUNTS [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS [wildmat]]
  LISTGROUP [newsgroup [range]]
  MODE READER
  NEWGROUPS [yy]yymmdd hhmmss [GMT]
  NEWNEWS wildmat [yy]yymmdd hhmmss [GMT]
  NEXT
  OVER [range]
  POST
  QUIT
  STARTTLS
  STAT [message-ID|number]
  XGTITLE [wildmat]
  XHDR header [message-ID|range]
  XOVER [range]
  XPAT header message-ID|range pattern [pattern ...]
Report problems to <usenet <at> blaine.gmane.org>.
.
382 Begin TLS negotiation now
100 Legal commands
  ARTICLE [message-ID|number]
  AUTHINFO USER name|PASS password|SASL mechanism [initial-response]|GENERIC program [argument ...]
  BODY [message-ID|number]
  CAPABILITIES [keyword]
  COMPRESS DEFLATE
  DATE
  GROUP newsgroup
  HDR header [message-ID|range]
  HEAD [message-ID|number]
  HELP
  IHAVE message-ID
  LAST
  LIST [ACTIVE [wildmat]|ACTIVE.TIMES [wildmat]|COUNTS [wildmat]|DISTRIB.PATS|DISTRIBUTIONS|HEADERS [MSGID|RANGE]|MODERATORS|MOTD|NEWSGROUPS [wildmat]|OVERVIEW.FMT|SUBSCRIPTIONS [wildmat]]
  LISTGROUP [newsgroup [range]]
  MODE READER
  NEWGROUPS [yy]yymmdd hhmmss [GMT]
  NEWNEWS wildmat [yy]yymmdd hhmmss [GMT]
  NEXT
  OVER [range]
  POST
  QUIT
  STARTTLS
  STAT [message-ID|number]
  XGTITLE [wildmat]
  XHDR header [message-ID|range]
  XOVER [range]
  XPAT header message-ID|range pattern [pattern ...]
Report problems to <usenet <at> blaine.gmane.org>.
.




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#35513; Package emacs,gnus. (Sat, 22 Jun 2019 12:23:01 GMT) Full text and rfc822 format available.

Message #8 received at 35513 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Uwe Brauer <oub.oub.oub <at> gmail.com>
Cc: 35513 <at> debbugs.gnu.org
Subject: Re: bug#35513: (setq gnus-thread-sort-functions
 '(gnus-thread-sort-by-number)) seems not to work always.
Date: Sat, 22 Jun 2019 14:22:12 +0200
Uwe Brauer <oub.oub.oub <at> gmail.com> writes:

> (setq gnus-thread-ignore-subject nil)

[...]

> Now I reply to  89536, change the subject but leave the reference
> intact, that results in   89540, placed *before* 89538, which is not
> correct. 

Yes -- the sorting is done before splitting threads up based on the
gnus-thread-ignore-subject, which seems like a bug.

Fixing this rather obscure problem would require traversing the thread
structure once more, which I'm not sure is worth it...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 22 Jun 2019 12:23:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#35513; Package emacs,gnus. (Fri, 27 Sep 2019 14:57:01 GMT) Full text and rfc822 format available.

Message #13 received at 35513 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Uwe Brauer <oub.oub.oub <at> gmail.com>
Cc: 35513 <at> debbugs.gnu.org
Subject: Re: bug#35513: (setq gnus-thread-sort-functions
 '(gnus-thread-sort-by-number)) seems not to work always.
Date: Fri, 27 Sep 2019 16:56:13 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Yes -- the sorting is done before splitting threads up based on the
> gnus-thread-ignore-subject, which seems like a bug.
>
> Fixing this rather obscure problem would require traversing the thread
> structure once more, which I'm not sure is worth it...

After pondering this, I've come to the conclusion that it's best just to
document this quirk instead of threading, then sorting, then splitting,
and then re-threading and re-sorting, and I'm closing this as a "wontfix".

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Sep 2019 14:57:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 35513 <at> debbugs.gnu.org and Uwe Brauer <oub.oub.oub <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 27 Sep 2019 14:57:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#35513; Package emacs,gnus. (Fri, 27 Sep 2019 16:42:02 GMT) Full text and rfc822 format available.

Message #20 received at 35513 <at> debbugs.gnu.org (full text, mbox):

From: Uwe Brauer <oub.oub.oub <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 35513 <at> debbugs.gnu.org, Uwe Brauer <oub.oub.oub <at> gmail.com>
Subject: Re: bug#35513: (setq gnus-thread-sort-functions
 '(gnus-thread-sort-by-number)) seems not to work always.
Date: Fri, 27 Sep 2019 18:40:52 +0200
>>> "LI" == Lars Ingebrigtsen <larsi <at> gnus.org> writes:

   > Lars Ingebrigtsen <larsi <at> gnus.org> writes:
   >> Yes -- the sorting is done before splitting threads up based on the
   >> gnus-thread-ignore-subject, which seems like a bug.
   >> 
   >> Fixing this rather obscure problem would require traversing the thread
   >> structure once more, which I'm not sure is worth it...

   > After pondering this, I've come to the conclusion that it's best just to
   > document this quirk instead of threading, then sorting, then splitting,
   > and then re-threading and re-sorting, and I'm closing this as a "wontfix".

So you don't find it annoying and to difficult to implement and maybe to debug?




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#35513; Package emacs,gnus. (Fri, 27 Sep 2019 16:43:01 GMT) Full text and rfc822 format available.

Message #23 received at 35513 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Uwe Brauer <oub.oub.oub <at> gmail.com>
Cc: 35513 <at> debbugs.gnu.org
Subject: Re: bug#35513: (setq gnus-thread-sort-functions
 '(gnus-thread-sort-by-number)) seems not to work always.
Date: Fri, 27 Sep 2019 18:41:58 +0200
Uwe Brauer <oub.oub.oub <at> gmail.com> writes:

> So you don't find it annoying and to difficult to implement and maybe
> to debug?

I think breaking threads on subject change is a misfeature, so enhancing
that misfeature doesn't seem appropriate.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#35513; Package emacs,gnus. (Fri, 27 Sep 2019 16:46:01 GMT) Full text and rfc822 format available.

Message #26 received at 35513 <at> debbugs.gnu.org (full text, mbox):

From: Uwe Brauer <oub.oub.oub <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 35513 <at> debbugs.gnu.org, Uwe Brauer <oub.oub.oub <at> gmail.com>
Subject: Re: bug#35513: (setq gnus-thread-sort-functions
 '(gnus-thread-sort-by-number)) seems not to work always.
Date: Fri, 27 Sep 2019 18:45:10 +0200
>>> "LI" == Lars Ingebrigtsen <larsi <at> gnus.org> writes:

   > Uwe Brauer <oub.oub.oub <at> gmail.com> writes:
   >> So you don't find it annoying and to difficult to implement and maybe
   >> to debug?

   > I think breaking threads on subject change is a misfeature, so enhancing
   > that misfeature doesn't seem appropriate.

So you are saying that if I change the subject line in a tread, I should
not break the thread?

I came to this feature by a recommendation of John Wiley.

If you change the subject, change the thread, for me that looks
logically, you say, no?




Information forwarded to bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org:
bug#35513; Package emacs,gnus. (Sat, 28 Sep 2019 00:14:02 GMT) Full text and rfc822 format available.

Message #29 received at 35513 <at> debbugs.gnu.org (full text, mbox):

From: Eric Abrahamsen <eric <at> ericabrahamsen.net>
To: Uwe Brauer <oub.oub.oub <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 35513 <at> debbugs.gnu.org
Subject: Re: bug#35513: (setq gnus-thread-sort-functions
 '(gnus-thread-sort-by-number)) seems not to work always.
Date: Fri, 27 Sep 2019 17:13:07 -0700
Uwe Brauer <oub.oub.oub <at> gmail.com> writes:

>>>> "LI" == Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>    > Uwe Brauer <oub.oub.oub <at> gmail.com> writes:
>    >> So you don't find it annoying and to difficult to implement and maybe
>    >> to debug?
>
>    > I think breaking threads on subject change is a misfeature, so enhancing
>    > that misfeature doesn't seem appropriate.
>
> So you are saying that if I change the subject line in a tread, I should
> not break the thread?
>
> I came to this feature by a recommendation of John Wiley.
>
> If you change the subject, change the thread, for me that looks
> logically, you say, no?

To me, no. I've always felt that threads should be built by reference,
not by subject. To me, reference headers feel like a "real" connection,
vs subject headers, which only happen to coincide.

Obviously this is totally subjective, and I only chime in to say that
other people (me) have a different "logical" interpretation of the
situation. But it's one of those areas of Gnus that everyone will have
different (strongly-held) opinions about.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Oct 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 182 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.