Article View: news.software.readers
Article #266053Re: [Gnus] Applying scores to groups as soon as news is fetched
From: issdr
Date: Tue, 23 May 2023 13:29
Date: Tue, 23 May 2023 13:29
59 lines
3080 bytes
3080 bytes
Benjamin Esham wrote: > issdr wrote: > >> i tried the piece of code you isolated, it works both at startup and >> when checking news again, it just gives warnings of no group found once >> it's thru. > > Yes, the warnings are a bit annoying. Maybe it's possible to suppress them > by setting gnus-verbose locally? i changed this from 3 to 4 and re-byte-compiled, but could have broken something else, i don't know (no bad signs so far): ~ $ rgrep -n "No articles in the group" emacs/ emacs/lisp/gnus/gnus-sum.el:7463: (gnus-message 4 "No articles in the group") grep: emacs/lisp/gnus/gnus-sum.elc: binary file matches ~ $ > Otherwise, though, this works well: > > ; Apply scores as soon as news is fetched > (defun apply-scores-to-subscribed-groups () > (let (info group newsrc unread) > (setq newsrc (cdr gnus-newsrc-alist)) > (while (setq info (pop newsrc)) > (setq group (gnus-info-group info) > unread (gnus-group-unread group)) > (when (and (<= (gnus-info-level info) gnus-level-subscribed) > (and unread > (or (eq unread t) > (not (zerop unread))))) > (ignore-errors > (gnus-summary-read-group group nil t nil t)) > (when (eq (current-buffer) (get-buffer gnus-summary-buffer)) > (gnus-summary-exit)))))) > > (add-hook 'gnus-started-hook > 'apply-scores-to-subscribed-groups) > (add-hook 'gnus-after-getting-new-news-hook > 'apply-scores-to-subscribed-groups) > > Thank you for the assistance! great! no prob. from e-s.support: ,---- | The groups still exist on E-S, but they are empty, presumably because | nobody bothered to send rmgroups when the Stanford news server hosting | the mail2news gateway for the GNU mailing lists shut down in September | 2020. | | Time to remove the gnu.* groups, I reckon. `---- even though i see an active gnu.emacs.help, where gnus topics are discussed.
Technical Details
Message-ID:
<87ilcjfa5n.fsf@ID-313311.news.uni-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<rucwqq.ngzfbd@bdesham.net>Show Full Headers
Complete Article Headers
Message-ID: <87ilcjfa5n.fsf@ID-313311.news.uni-berlin.de>
Subject: Re: [Gnus] Applying scores to groups as soon as news is fetched
Date: Tue, 23 May 2023 15:29:56 +0200
From: issdr <p_u_n_k_i_n_d@yahoo.it>
References: <rucwqq.ngzfbd@bdesham.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.readers
Lines: 60
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net hvwORGuIT37dtlSrC+fmrQHKk7HvcglejQ9E58QDfeqnHqi0Sg
X-Orig-Path: ID-313311.news.uni-berlin.de!not-for-mail
Cancel-Lock: sha1:BqJgxlz5Dy3/UkhqwJt/qaGhVF0=
User-Agent: Gnus/5.13 Emacs/30.0.50 (gnu/linux)
X-Face: Zw,R[}.rn5!7_4>.U1j!zNkszle\GP]4G+xPe`%F=i$PMP)8W/c57#P6B_TFI@1-LR6?a9
T@A$^Vh,|cG:_4p59{<cR\^_^r9<1Iq/8?4,7|-PhJpEyE/v42omF=F]M<p?9+;~(nPqwCCm*IaHu
N4S.pGVU=E!6R=0!PVz1`vb&zc`.X<jw