Gnus development mailing list
 help / color / mirror / Atom feed
From: Lloyd Zusman <ljz@asfast.com>
Subject: Re: Abbreviations for group names
Date: Tue, 27 Jun 2006 06:44:34 -0400	[thread overview]
Message-ID: <8764imswrx.fsf@asfast.com> (raw)
In-Reply-To: <m38xnjgqi9.fsf@tuxie.homelinux.net>

Nelson Ferreira <nelson.ferreira@ieee.org> writes:

> "Lloyd" == Lloyd Zusman <ljz@asfast.com> writes:
>
>
>     [...]
>
>     Lloyd> For example, I'd like `gmane.emacs.gnus.general' to appear
>     Lloyd> in the group buffer as `gmane.gnus'.
>
>     [ ... ]
>
> I do it like this:
>
> (defun gnus-user-format-function-g (header)
>   "Get the groups name in the right format."
>   (njsf-abreviate-group-name gnus-tmp-group))
>
> (setq gnus-group-line-format "%M%m%S%PP   %(%ug%) %y%l
> ")
>
> And of course my njsf-abreviate-group-name mangles the group-name as I
> want it.

Thank you very much.  I also have used this method in the past, and it
indeed works fine.

I was just wondering whether there was a mechanism already built into
gnus which could accomplish this in a more formal manner ... something
vaguely analogous to `gnus-posting-styles', perhaps, but which operates
on the group names in the group buffer.  In my spare time, maybe I
should create something that would work more or less like this ...

  (setq gnus-group-abbreviations
        '(("^gmane\\..*\\([^.]*\\)\\.general$"
           "gmane.\\1")
          ("^comp\\.lang\\.\\(.*\\)$"
           "lang.\\1")))

-- 
 Lloyd Zusman
 ljz@asfast.com
 God bless you.




      reply	other threads:[~2006-06-27 10:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26 23:37 Lloyd Zusman
2006-06-27  4:40 ` Nelson Ferreira
2006-06-27 10:44   ` Lloyd Zusman [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=8764imswrx.fsf@asfast.com \
    --to=ljz@asfast.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).