Gnus development mailing list
 help / color / mirror / Atom feed
From: David Engster <deng@randomsample.de>
To: ding@gnus.org
Subject: Re: Shorter/customized group names?
Date: Fri, 29 May 2009 18:50:02 +0200	[thread overview]
Message-ID: <m2zlcvdfb9.fsf@gwdg-mac-engster.top.gwdg.de> (raw)
In-Reply-To: <m2zlcwner6.fsf@boostpro.com> (David Abrahams's message of "Fri, 29 May 2009 10:51:57 -0400")

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?

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.

>  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?

-David



  reply	other threads:[~2009-05-29 16:50 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 [this message]
2009-05-29 18:02           ` David Abrahams
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=m2zlcvdfb9.fsf@gwdg-mac-engster.top.gwdg.de \
    --to=deng@randomsample.de \
    --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).