From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63435 Path: news.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.emacs.gnus.general Subject: Re: Abbreviations for group names Date: Tue, 27 Jun 2006 06:44:34 -0400 Message-ID: <8764imswrx.fsf@asfast.com> References: <87ejxb5w0v.fsf@hippo.ljz.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151405282 10653 80.91.229.2 (27 Jun 2006 10:48:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2006 10:48:02 +0000 (UTC) Original-X-From: ding-owner+m11962@lists.math.uh.edu Tue Jun 27 12:48:00 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FvB6q-0001AU-Bw for ding-account@gmane.org; Tue, 27 Jun 2006 12:47:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1FvB6i-0002wA-00; Tue, 27 Jun 2006 05:47:48 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1FvB68-0002w4-00 for ding@lists.math.uh.edu; Tue, 27 Jun 2006 05:47:12 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1FvB68-0002Eq-4U for ding@lists.math.uh.edu; Tue, 27 Jun 2006 05:47:12 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1FvB67-0002mp-00 for ; Tue, 27 Jun 2006 12:47:11 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FvB65-00013b-7I for ding@gnus.org; Tue, 27 Jun 2006 12:47:09 +0200 Original-Received: from 64.71.168.121 ([64.71.168.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jun 2006 12:47:09 +0200 Original-Received: from ljz by 64.71.168.121 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jun 2006 12:47:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 43 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 64.71.168.121 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:+9cHQHSqhK+m5qB87uzbCZHdwNM= X-Spam-Score: -1.1 (-) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63435 Archived-At: Nelson Ferreira writes: > "Lloyd" == Lloyd Zusman 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.