Gnus development mailing list
 help / color / mirror / Atom feed
From: David S Goldberg <david.goldberg6@verizon.net>
Subject: "unread" thread in a different color?
Date: Wed, 21 Apr 2004 11:33:21 -0400	[thread overview]
Message-ID: <u8z65btxs5a.fsf@blackbird.MITRE.ORG> (raw)

Probably a feature request but perhaps there's something I could do on
a hook.  I have a couple of groups on which I set the display
parameter to t resulting in large summary buffers with a lot of O and
! marked articles.  To deal with the large numbers I hide all threads
by setting gnus-thread-hide-subtree to t by default.  The problem with
this is that when I have more than one unread article in the group it
is not clear in which threads I have unread messages (except the first
because that one always seems to be unhidden automatically).  I've got
the summary sorted by thread with most recent number and then by most
recent date.  This helps, but it's still not everything I would like
because, for example, while I might know that there are four unread
messages in the summary, it's not clear whether they are all under the
first thread or whether there is one under each, or some combination.
What I'd like is some way to have a thread with unread messages in it
shown in a different color.  I've already given up on having an unread
count in the summary line.  I wrote a function that counts the number
of unread messages in the thread below the current summary line:

(defun dsg-unread-in-thread ()
  (length
   (remove nil
	   (mapcar
	    'gnus-summary-article-unread-p
	    (gnus-summary-articles-in-thread)))))

But as that changes (e.g. by reading an article), there doesn't seem
to be an easy way to update the parent summary lines.  My hope was
that it wouldn't be that hard to incorporate into
gnus-summary-highlight since then I'd only have to compare against 0
and not worry about maintaining counts.  Is there any way to do
something like that?

Thanks,
-- 
Dave Goldberg
david.goldberg6@verizon.net





             reply	other threads:[~2004-04-21 15:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-21 15:33 David S Goldberg [this message]
2004-05-16 12:30 ` 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=u8z65btxs5a.fsf@blackbird.MITRE.ORG \
    --to=david.goldberg6@verizon.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).