Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: info-gnus-english@gnu.org
Subject: Re: Automatically sort groups into topics
Date: Thu, 15 Jun 2017 15:26:42 +0200	[thread overview]
Message-ID: <86y3st4c19.fsf@zoho.com> (raw)
In-Reply-To: <m160fy66zy.fsf@ankarstrom.se>

John Ankarström wrote:

> Well, alphabetical order would be one way to
> do it, but I'd like to be more flexible than
> that. Currently I sort the group buffer by
> score, which I find is helpful.

Remember it is not only an alphabetical sort,
it is implicitly a theme sort because of the
hierarchy style of naming groups.

To sort groups based on score - how would you
then find a particular group? No scoring system
will ever be so good as to put the right group
in front of you every time.

Take a look at these dumps:

    http://user.it.uu.se/~embe8573/gnus-abc/

One key to get a subset of groups - here, those
with traffic *and* above level 3, inclusive.
Note that this list is also in ABC.

Another key to get every other group.

So in essence, keep sorted, remove subsets.

I post the Elisp here, perhaps you can use it
to do whatever it is you want to do:

    (defun gnus-group-list-few-groups-sort ()
      "List subscribed groups with level below `gnus-level-subscribed'.
    Sort with `gnus-group-sort-function'."
      (interactive)
      (gnus-group-list-groups gnus-level-subscribed)
      (gnus-group-sort-groups gnus-group-sort-function)
      )

    (defun gnus-group-list-all-groups-sort ()
      "List all subscribed groups.
    Sort with `gnus-group-sort-function'."
      (interactive)
      (gnus-group-list-all-groups)
      (gnus-group-sort-groups gnus-group-sort-function)
      )

-- 
underground experts united
http://user.it.uu.se/~embe8573


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

      parent reply	other threads:[~2017-06-15 13:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-03 17:35 Can't access the gnu.* hierarchy using Gnus Joseph Fineman
2017-06-03 18:18 ` Harry Putnam
2017-06-12 19:30 ` Mike Small
2017-06-12 23:11 ` Emanuel Berg
2017-06-13 11:24 ` Automatically sort groups into topics John Ankarström
2017-06-13 18:29   ` B.V. Raghav
2017-06-14  1:32     ` Emanuel Berg
2017-06-14  1:29   ` Emanuel Berg
2017-06-14  6:57     ` Adam Sjøgren
2017-06-14  7:04       ` Emanuel Berg
2017-06-14  7:11         ` Adam Sjøgren
2017-06-14  7:30           ` Emanuel Berg
2017-06-14  7:53             ` Adam Sjøgren
2017-06-14  8:14               ` Emanuel Berg
2017-06-14 11:07                 ` Adam Sjøgren
2017-06-14 11:30                   ` Emanuel Berg
2017-06-14 13:20     ` John Ankarström
2017-06-15  6:40       ` Emanuel Berg
2017-06-15 13:26       ` Emanuel Berg [this message]

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=86y3st4c19.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=info-gnus-english@gnu.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).