From: Michael Heerdegen <michael_heerdegen@web.de>
To: physiculus <physiculus@gmail.com>
Cc: gnus <info-gnus-english@gnu.org>
Subject: Re: gnus-registry-marks; Any chance to search or filter for?
Date: Sat, 11 Jul 2020 01:40:51 +0200 [thread overview]
Message-ID: <874kqfaqgs.fsf@web.de> (raw)
In-Reply-To: <871rm4k6tz.fsf@googlemail.com> (physiculus@gmail.com's message of "Wed, 24 Jun 2020 14:04:56 +0200")
physiculus <physiculus@gmail.com> writes:
> i want to search or filter with the registry-marks i set. Is this
> possible? I couldn't find a function for that in the gnus documentation.
I think you have to do it by hand. Something like this should give you
the registry-marked messages in the current group:
#+begin_src emacs-lisp
(delq nil
(mapcar
(lambda (id) (cdr (gnus-request-head id gnus-newsgroup-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)))
#+end_src
I'm using something like this in an :around advice of
`gnus-alter-articles-to-read-function' to automatically include all
registry marked messages in group summaries (similarly to ticked).
Michael.
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
next prev parent reply other threads:[~2020-07-10 23:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 12:04 physiculus
2020-07-10 23:40 ` Michael Heerdegen [this message]
[not found] ` <87o8om9dew.fsf@googlemail.com>
[not found] ` <87imet4m88.fsf@web.de>
2020-07-13 17:52 ` physiculus
2020-07-14 15:08 ` Michael Heerdegen
2020-07-14 16:12 ` Eric Abrahamsen
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=874kqfaqgs.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=info-gnus-english@gnu.org \
--cc=physiculus@gmail.com \
/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).