From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68578 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: Shorter/customized group names? Date: Fri, 29 May 2009 18:50:02 +0200 Message-ID: References: <87zlcydxa0.fsf@randomsample.de> <877i017ec4.fsf@randomsample.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243615861 32247 80.91.229.12 (29 May 2009 16:51:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 16:51:01 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17009@lists.math.uh.edu Fri May 29 18:50:57 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MA5IF-0008Jx-7y for ding-account@gmane.org; Fri, 29 May 2009 18:50:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1MA5Hd-0002ZW-En; Fri, 29 May 2009 11:50:17 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MA5Hc-0002ZI-7D for ding@lists.math.uh.edu; Fri, 29 May 2009 11:50:16 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MA5HV-0006Go-Qf for ding@lists.math.uh.edu; Fri, 29 May 2009 11:50:16 -0500 Original-Received: from m61s02.vlinux.de ([83.151.21.164]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MA5Hz-0007PO-00 for ; Fri, 29 May 2009 18:50:39 +0200 Original-Received: from gwdg-mac-engster.top.gwdg.de ([134.76.4.218]) by m61s02.vlinux.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1MA5HU-0006Bg-F6 for ding@gnus.org; Fri, 29 May 2009 18:50:08 +0200 In-Reply-To: (David Abrahams's message of "Fri, 29 May 2009 10:51:57 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.93 (darwin) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68578 Archived-At: David Abrahams 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