[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Update topic unread counts on group exit?
From: |
Eric Abrahamsen |
Subject: |
Re: Update topic unread counts on group exit? |
Date: |
Wed, 04 May 2022 11:32:31 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Adam Sjøgren <asjo@koldfront.dk> writes:
> Eric writes:
>
>>> Is there a way to get Gnus to update the counts automatically on group
>>> exit as well?
>
>> It looks to me like you could add a function to
>> `gnus-summary-exit-hook', which calls
>> `gnus-topic-update-topics-containing-group' on the value of
>> `gnus-newsgroup-name'. At that stage in summary exit,
>> `gnus-newsgroup-name' won't have been cleared yet, so it should still
>> hold the name of the group you're coming out of.
>
> Any reason for Gnus not to do that by default?
I can't think of any reason off the top of my head. It's not like it's
such a costly procedure. gnus-topic is a little fiddly about how it
hooks into the rest of the Gnus machinery, but it shouldn't be hard to
figure out.
> I will see if I can get your suggestion going after dinner :-)
It ought to work without the hacky dance, but I'll be curious to hear!
- Update topic unread counts on group exit?, Adam Sjøgren, 2022/05/04
- Re: Update topic unread counts on group exit?, Eric Abrahamsen, 2022/05/04
- Re: Update topic unread counts on group exit?, Adam Sjøgren, 2022/05/04
- Re: Update topic unread counts on group exit?, Adam Sjøgren, 2022/05/04
- Re: Update topic unread counts on group exit?, Eric Abrahamsen, 2022/05/04
- Re: Update topic unread counts on group exit?, Adam Sjøgren, 2022/05/04
- Re: Update topic unread counts on group exit?, Adam Sjøgren, 2022/05/04
- Re: Update topic unread counts on group exit?, Eric Abrahamsen, 2022/05/04
- Re: Update topic unread counts on group exit?, Adam Sjøgren, 2022/05/05
- Re: Update topic unread counts on group exit?,
Eric Abrahamsen <=