Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Eric writes: > Looks like Dick Chiang has already opened a bug report containing the > fix, so expect this to work Real Soon Now. That fixed it - great, thanks! Best regards, Adam -- "Referring to glorified travelling salesmenAdam Sjøgren as ``road warriors'' is an

Re: Update topic unread counts on group exit?

2022-05-04 Thread Eric Abrahamsen
Adam Sjøgren writes: > Eric writes: > >> I'll remove the checks now. > > The line the error is triggered in is: > > (defun gnus-topic-update-topic-line (topic-name reads) > (let* ((top (gnus-topic-find-topology topic-name)) > (type (cadr top)) > (children

Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Eric writes: > I'll remove the checks now. The line the error is triggered in is: (defun gnus-topic-update-topic-line (topic-name reads) (let* ((top (gnus-topic-find-topology topic-name)) (type (cadr top)) (children (cddr top)) (entries

Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Eric writes: > In fact, gnus-topic.el already thinks it's doing what you want -- > updating topic lines on group exit -- but because of the bug in > `gnus-topic-update-topic', the update never happens. Oooh, cool, I didn't remember that it used to work ;-) > Lars added that major-mode check as

Re: Update topic unread counts on group exit?

2022-05-04 Thread Eric Abrahamsen
Adam Sjøgren writes: > Adam writes: > >> Eric writes: >> >>> 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, >>>

Re: Update topic unread counts on group exit?

2022-05-04 Thread Eric Abrahamsen
Adam Sjøgren 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 >>

Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Adam writes: > Eric writes: > >> 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,

Re: Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
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

Re: Update topic unread counts on group exit?

2022-05-04 Thread Eric Abrahamsen
Adam Sjøgren writes: > Hi, > > > When I exit a group, the unread count in the topic it is under doesn't > update. > > If I collapse the topic, the count gets updated. That's cool. > > Is there a way to get Gnus to update the counts automatically on group > exit as well? It looks to me like

Update topic unread counts on group exit?

2022-05-04 Thread Adam Sjøgren
Hi, When I exit a group, the unread count in the topic it is under doesn't update. If I collapse the topic, the count gets updated. That's cool. Is there a way to get Gnus to update the counts automatically on group exit as well? The speed of Emacs these days makes me think I don't mind