Gnus development mailing list
 help / color / mirror / Atom feed
From: Mark Thomas <swoon@bellatlantic.net>
Subject: patch: trn-like thread-display remembering state
Date: Fri, 24 Jan 2003 09:23:45 -0500	[thread overview]
Message-ID: <wf1heby62z2.fsf@grubzen.com> (raw)


The state of the trn-like thread-display code (format spec %B) does
not get reset when threading is turned off.  The state is also
remembered when going from a group where threads are used to a group
where threads are not used.

For example, the *Summary* buffer for this list looks like:

    16:01 23Jan03[  16:Lars Magne Ingebrigt] > Re: `A T' and Gmanes humongus groups
    20:43 23Jan03[  17:Harry Putnam        ] +-> 
     7:45 24Jan03[  21:Kai Großjohann      ] \-> 
    17:52 23Jan03[  15:Andreas Fuchs       ] > Re: new spam.el functionality
    21:44 23Jan03[  19:Ted Zlatanov        ] +-> 
    22:23 23Jan03[  20:Raja R Harinath     ] \-> 
    23:33 23Jan03[  48:Ted Zlatanov        ]   \-> 
    23:48 23Jan03[  47:Ted Zlatanov        ] > Re: bug in spam.el and expiry issue
     6:15 24Jan03[  25:Bruce Stephens      ] \-> 
     0:00 24Jan03[  32:Jesper Harder       ] > Security key bindings
     1:30 24Jan03[  32:Vasily Korytov      ] \-> 
     0:08 24Jan03[  19:Ted Zlatanov        ] Re: spam.el+ifile doesn't notice 'S x'd articles
     1:43 24Jan03[  31:Vasily Korytov      ] Re: gnus doesn't obey header settings.
     3:33 24Jan03[  13:Sean Neakums        ] > Gnus Agent and mail
     7:52 24Jan03[  13:Kai Großjohann      ] \-> 

Note that gnus-tmp-thread-tree-header-string is "\\-> ".

If I use T T to toggle threading off, my *Summary* buffer becomes:

    16:01 23Jan03[  16:Lars Magne Ingebrigt] \-> Re: `A T' and Gmanes humongus groups
    17:52 23Jan03[  15:Andreas Fuchs       ] \-> Re: new spam.el functionality
    20:43 23Jan03[  17:Harry Putnam        ] \-> Re: `A T' and Gmanes humongus groups
    21:44 23Jan03[  19:Ted Zlatanov        ] \-> Re: new spam.el functionality
    22:23 23Jan03[  20:Raja R Harinath     ] \-> Re: new spam.el functionality
    23:33 23Jan03[  48:Ted Zlatanov        ] \-> Re: new spam.el functionality
    23:48 23Jan03[  47:Ted Zlatanov        ] \-> Re: bug in spam.el and expiry issue
     0:00 24Jan03[  32:Jesper Harder       ] \-> Security key bindings
     0:08 24Jan03[  19:Ted Zlatanov        ] \-> Re: spam.el+ifile doesn't notice 'S x'd articles
     1:30 24Jan03[  32:Vasily Korytov      ] \-> Re: Security key bindings
     1:43 24Jan03[  31:Vasily Korytov      ] \-> Re: gnus doesn't obey header settings.
     3:33 24Jan03[  13:Sean Neakums        ] \-> Gnus Agent and mail
     6:15 24Jan03[  25:Bruce Stephens      ] \-> Re: bug in spam.el and expiry issue
     7:45 24Jan03[  21:Kai Großjohann      ] \-> Re: `A T' and Gmanes humongus groups
     7:52 24Jan03[  13:Kai Großjohann      ] \-> Re: Gnus Agent and mail

The "\\-> " is a surprise.  I would have expected
gnus-tmp-thread-tree-header-string to be "" since I have disabled
threading.

My next group is gmane.emacs.gnus.cvs where I have disabled threading
(via group parameters).  The *Summary* buffer for that group looks
like:

    14:23 23Jan03[  14:Lars Magne Ingebrigt] \-> CVS update of gnus/texi (gnus.texi)
    17:44 23Jan03[  14:Lars Magne Ingebrigt] \-> CVS update of gnus/lisp (mm-decode.el)
    17:45 23Jan03[  14:Lars Magne Ingebrigt] \-> CVS update of gnus/lisp (mm-decode.el)
    17:47 23Jan03[  14:Katsumi Yamaoka     ] \-> CVS update of gnus/texi (gnus.texi)
    18:07 23Jan03[  24:Lars Magne Ingebrigt] \-> CVS update of gnus/lisp (ChangeLog gnus-art.el gnus-sum.el)
    21:49 23Jan03[  16:Jesper Harder       ] \-> CVS update of gnus/lisp (ChangeLog gnus-msg.el)
    22:12 23Jan03[  14:Jesper Harder       ] \-> CVS update of gnus (ChangeLog)
    22:12 23Jan03[  14:Jesper Harder       ] \-> CVS update of gnus/etc (gnus-tut.txt)
     0:02 24Jan03[  17:Ted Zlatanov        ] \-> CVS update of gnus/lisp (ChangeLog spam.el)
     0:05 24Jan03[  14:Ted Zlatanov        ] \-> CVS update of gnus/lisp (spam.el)

We still have the "\\-> " prefix.

From my ~/.gnus:

    ;; use threads
    (setq gnus-show-threads t)
    ;; when threading, what to do if the root is gone
    (setq gnus-summary-make-false-root 'dummy)
    ;; but only make the dummy root when there are threads
    (setq gnus-summary-make-false-root-always nil)
    ;; max old headers to fetch for threading purposes
    (setq gnus-fetch-old-headers 50)
     ;; whether gnus fills in old threads
    (setq gnus-build-sparse-threads nil)
    ;; format of the summary line -- add the date
    (setq gnus-summary-line-format
          "%U%R%z%uD%(%[%4L:%-20,20f%]%)%* %B%s\n")
    ;; format of the line for dummy articles
    (setq gnus-summary-dummy-line-format
          "                %([    :DUMMY ROOT          ]%)%* > %S\n")

I believe this patch will fix the problem:

--- gnus-sum.el 2003-01-21 07:55:50.000000000 -0500
+++ /tmp/gnus-sum.el    2003-01-24 09:15:19.000000000 -0500
@@ -4543,7 +4543,8 @@
        gnus-tmp-number gnus-tmp-opening-bracket gnus-tmp-closing-bracket
        tree-stack)
 
-    (setq gnus-tmp-prev-subject nil)
+    (setq gnus-tmp-prev-subject nil
+          gnus-tmp-thread-tree-header-string "")
 
     (if (vectorp (car threads))
        ;; If this is a straight (sic) list of headers, then a



Thanks,

-Mark



             reply	other threads:[~2003-01-24 14:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-24 14:23 Mark Thomas [this message]
2003-01-24 19:01 ` Kai Großjohann
2003-01-27 18:12   ` Trivial (was: Re: patch: trn-like thread-display remembering state) Simon Josefsson
2003-01-27 20:21     ` Trivial Kai Großjohann
2003-01-27 20:48       ` Trivial Romain FRANCOISE
2003-01-28  6:55         ` Trivial Kai Großjohann
2003-02-01 16:20       ` Trivial Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wf1heby62z2.fsf@grubzen.com \
    --to=swoon@bellatlantic.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).