From: Andrew Cohen <cohen@bu.edu>
To: ding@gnus.org
Subject: Re: nnvirtual
Date: Fri, 05 May 2017 20:09:56 +0800 [thread overview]
Message-ID: <87r3031p4b.fsf@hanan> (raw)
In-Reply-To: <87efw4gc2m.fsf@ericabrahamsen.net>
>>>>> "Eric" == Eric Abrahamsen <eric@ericabrahamsen.net> writes:
Eric> Andrew Cohen <cohen@bu.edu> writes:
>>>>>>> "Eric" == Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
[...]
Eric> I'd say we have to assume that, if the functionality is there,
Eric> someone is using it, and combining groups is definitely
Eric> something people do -- see Dovecot's virtual groups, for
Eric> instance.
Yes, I am not proposing eliminating it, I'm proposing making it more
useful (but I don't know what that means yet:()
Eric> As for the large newsgroup prompting, I think it would be
Eric> desirable simply because it makes select groups behave like
Eric> other Gnus groups, and means the limit isn't hardcoded. It
Eric> short, it reduces users' mental friction when using select
Eric> groups.
Yes, I agree, and my intention is to add it (since its trivial) but
first I want to know if I can make the whole thing more useful.
Eric> Random other things:
Eric> How does sorting work in select groups? Right now gnus-search
Eric> does a pass in `gnus-search-run-query', sorting on rsv, but
Eric> since nearly all engines return a score of 100, it's fairly
Eric> meaningless.
I agree. I have gone back and forth about whether to eliminate it
entirely. Eliminating it would allow some compression in various
internal variables but this probably doesn't make much of a difference.
But nnselect is currently ignoring the RSV---it is still available so
that sorting functions can use it, however. nnselect is agnostic about
the whole thing.
Eric> Summary buffer articles really are sorted according to the
Eric> order returned by `gnus-search-run-query', which I find odd:
Eric> shouldn't the normal `gnus-thread|article-sort-functions'
Eric> routine kick in after group creation?
Yes, and that is how it behaves for me---nnselect buffers are sorted
exactly like any other gnus buffer. Not for you? I wonder why...
(Aside: Various gnus functions require the article list to be
non-decreasing so in general the way nnselect works is to sort the
selection by group, and then ascending article number within each
group. This is how regular groups operate as well. Any subsequent
sorting in the summary buffer is "virtual" in the sense that the article
list itself isn't changed.).
Eric> Anyway, I'd just as soon not have gnus-search be responsible
Eric> for sorting at all: it seems like passing on the rsv should be
Eric> enough.
Any sorting done by nnir (and now gnus-search) is purely
incidental. nnselect mangles the order anyway. So I think you should
safely ignore any issues with regard to the return order of the
articles.
Eric> On the other hand, I'd sure like to let users specify a sort
Eric> meta-key, like "sort:score,-date", but then that information
Eric> would have to get passed down the line somehow. Perhaps
Eric> something for later.
All nnselect groups should be sorted exactly as any other gnus group,
and should be as flexible as the usual sorting system. If that isn't
working right its a bug.
Eric> I've provided a count:t meta key in the search language, but
Eric> it isn't used right now. The idea is that, if the user
Eric> includes this key, the search returns a total number of hits
Eric> per engine, rather than actually displaying the results (hits
Eric> per group would be nice, but that information could be
Eric> difficult extract from some engines). It will be fairly easy
Eric> to hot-wire `gnus-group-make-search-group' to return this
Eric> value, and permanent groups could simply strip it out.
Hmm, the old nnir reported this (it went by too fast to be useful, but
it was always available after the fact in the message buffer).
Eric> If you like, it could also be a cheap way of updating message
Eric> counts in permanent search groups. I note now that, at
Eric> start-up for instance, the permanent groups do not show counts
Eric> until they're entered.
This is a temporary artifact of my not yet activating the groups at
startup. The counts are all present and ready to be reported (as soon as
the group is created), I just haven't gotten around to keeping the
proper list of nnselect groups to allow activation and re-scanning as a
matter of course.
Eric> Sending a count request ought to be significantly cheaper than
Eric> actually retrieving results, and might be useful.
The counts are currently updated without retrieving any headers, and is
therefore quite fast. For example I have a variety of groups with
thousands of messages that are part of the nnselection and the time it
takes to update the group is a fraction of a second.
next prev parent reply other threads:[~2017-05-05 12:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-03 12:31 nnvirtual Andrew Cohen
2017-05-03 18:00 ` nnvirtual Eric Abrahamsen
2017-05-04 1:06 ` nnvirtual Andrew Cohen
2017-05-05 4:30 ` nnvirtual Eric Abrahamsen
2017-05-05 12:09 ` Andrew Cohen [this message]
2017-05-05 12:51 ` nnvirtual Andrew Cohen
2017-05-05 15:46 ` nnvirtual Eric Abrahamsen
2017-05-06 0:20 ` nnvirtual Andrew Cohen
2017-05-07 2:39 ` nnvirtual Eric Abrahamsen
2017-05-12 15:38 ` nnvirtual Steinar Bang
2017-05-12 17:42 ` nnvirtual Adam Sjøgren
2017-05-13 0:17 ` nnvirtual Harry Putnam
2018-04-11 19:42 ` nnvirtual Lars Ingebrigtsen
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=87r3031p4b.fsf@hanan \
--to=cohen@bu.edu \
--cc=ding@gnus.org \
/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).