GNU bug report logs -
#31057
27.0.50; Gnus: Make configurable what to show when selecting a group
Previous Next
Full log
Message #23 received at 31057 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> I see. I'm not familiar with the way nadvice works at all.
You should definitely have a look!
> Have you checked that the list of articles that's finally returned is
> the one you expect?
Yes, I think so.
> Try edebugging through gnus-select-newsgroup to see whether there's
> anything there that removes the list you've returned (if you've
> returned it. :-)).
Hmm - ehhm - it suddenly works as expected!
But I did not change anything in my config. I switched from emacs-26 to
master since my report, and the registry corruption has been fixed -
dunno if that made the difference.
So, I guess you can close this report. I can reopen it when the issue
reappears.
For the record, I changed my code to
#+begin_src emacs-lisp
(add-function :around gnus-alter-articles-to-read-function
(defun my-gnus-auto-show-registry-marked (f group-name article-list)
(cl-union
(delq nil
(mapcar (lambda (id) (cdr (gnus-request-head id group-name)))
(cl-loop for key being the hash-keys of (oref gnus-registry-db data)
using (hash-values v)
when (cdr (assoc 'mark v))
collect key)))
(funcall f group-name article-list))))
#+end_src
to look at the cdr of (assoc 'mark v) because when you delete a custom
mark, this leaves over an association like (Note) for me, which the
first version I had posted erroneously interpreted as "custom mark
present".
Thanks,
Michael.
This bug report was last modified 7 years and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.