From: David Abrahams <dave@boostpro.com>
To: ding@gnus.org
Subject: Re: Shorter/customized group names?
Date: Fri, 29 May 2009 14:02:58 -0400 [thread overview]
Message-ID: <m2fxenlrcd.fsf@boostpro.com> (raw)
In-Reply-To: <m2zlcvdfb9.fsf@gwdg-mac-engster.top.gwdg.de>
on Fri May 29 2009, David Engster <deng-AT-randomsample.de> wrote:
> David Abrahams <dave@boostpro.com> writes:
>> This is pretty cool, but it's also got a few problems. It relies on
>> implementation details of Gnus like the order in which groups get
>> formatted, that Gnus always formats *all* the groups (it doesn't) and on
>> some secret variables.
>
> It's a hack, for sure. Maybe the reason it works pretty well for me is
> because I'm using topic mode?
I'm using topic mode too.
> Regarding the gnus-tmp- variables, I'd say those are unlikely to change
> in the future, but they should surely be made "official". The doc-string
> for gnus-group-line-format says for '%u'
>
> ,----
> | The function will be passed a single dummy parameter as argument. The
> | function should return a string, which will be inserted into the
> | buffer just like information from any other group specifier.
> `----
>
> In the current form, this doesn't make sense, since it is not said how
> to obtain the group name and the corresponding method which should be
> inserted into the buffer.
Does that need to be reported as a bug?
>> Also, I'm not sure what resets DE-format-previous-regexp back to nil
>> other than encountering a non-nntp group.
>
> Exactly that.
>
>> Since I'd like this to work for non-nntp groups too, I don't think
>> that trick is going to work for me.
>
> I only have nntp groups which are separated by dots, so I tailored it to
> nntp only.
>
>> Here's what I've got so far as a tweak to the above, but since it relies
>> on the same assumptions, it doesn't quite work as well as it should.
>> This seems like the sort of thing for which we would need explicit
>> support from Gnus if it's not going to break with each release.
>
> Yes, maybe this jusn't isn't possibly to do reliably at the moment. I'd
> have to look in gnus-group.el in how Gnus builds the Group buffer in
> detail.
>
> [... snipped your version ...]
>
> Could you give an example how this code fails for you in certain
> situations?
Here's my current *Group* buffer. Note that gmane.comp.lib.boost.user
is reported as being gmane.os.lib.boost.user and
gmane.comp.file-systems.tahoe.announce has the same problem
[ Gnus -- 360190 ]
391 | 1watch.committee
2 | 0unsure
17 |*INBOX
[ Active -- 152317 ]
152304 |* . .lib.boost.devel
9 | .os.solaris.opensolaris.indiana
2 |*gmane.emacs.gnus.general
2 | .os.solaris.opensolaris.xen
[ Occasional -- 49166 ]
48143 | . .lib.boost.user
2 | . .file-systems.tahoe.announce
1021 | . . . .devel
[ misc -- 158297 ]
233 | . .lib.boost.announce
3251 | . . . .asio.user
20904 | . . . .build
501 | . . . .cmake
9071 | . . . .cvs
3790 | . . . .documentation
65 | . . . .interest
152 | . . . .jam
896 | . . . .langbinding
6357 | . . . .testing
383 | . . . .threads.devel
5022 | . . . .ublas
12231 | .emacs.gnus.user
95441 | .comp.python.devel
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
next prev parent reply other threads:[~2009-05-29 18:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 20:02 David Abrahams
2009-05-27 21:57 ` David Engster
2009-05-28 4:42 ` David Abrahams
2009-05-28 9:43 ` David Engster
2009-05-29 14:51 ` David Abrahams
2009-05-29 16:50 ` David Engster
2009-05-29 18:02 ` David Abrahams [this message]
2009-05-29 22:31 ` David Abrahams
2009-05-30 14:46 ` David Engster
2009-06-09 19:22 ` David Abrahams
2009-07-08 19:17 ` Ted Zlatanov
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=m2fxenlrcd.fsf@boostpro.com \
--to=dave@boostpro.com \
--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).