From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29244 Path: main.gmane.org!not-for-mail From: Arnd Kohrs Newsgroups: gmane.emacs.gnus.general Subject: Re: IMAP server hierarchy as topics Date: 15 Feb 2000 19:42:29 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035165948 1630 80.91.224.250 (21 Oct 2002 02:05:48 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:05:48 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 173C3D0520 for ; Tue, 15 Feb 2000 13:43:47 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id MAB02029; Tue, 15 Feb 2000 12:43:15 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 15 Feb 2000 12:42:57 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id MAA03776 for ; Tue, 15 Feb 2000 12:42:42 -0600 (CST) Original-Received: from monza.eurecom.fr (monza.eurecom.fr [193.55.113.133]) by mailhost.sclp.com (Postfix) with ESMTP id 5A0C0D0520 for ; Tue, 15 Feb 2000 13:42:39 -0500 (EST) Original-Received: from abyss.eurecom.fr (abyss.eurecom.fr [193.55.114.67]) by monza.eurecom.fr (Postfix) with ESMTP id 7FE0318AA5; Tue, 15 Feb 2000 19:42:32 +0100 (MET) Original-Received: (from kohrs@localhost) by abyss.eurecom.fr (8.9.3/8.9.3) id TAA26826; Tue, 15 Feb 2000 19:42:29 +0100 (MET) X-Authentication-Warning: abyss.eurecom.fr: kohrs set sender to kohrs@abyss.eurecom.fr using -f Original-To: David Kagedal X-Face: 1ETYv*X5`lW"hk(KWE,1u!/CnnMxdgn[B^=m*EUHa->O^!+d3x]l[_W$Y)E#1~_=+Ty..'B,|Am/!zh|sy6VS5&_x:7WjiJQgIsqct%a{s^F8jsI|(bKyplR'$FYjrg6Vu}kPbk&||'b99Yps%x?{NIMx?[YF2-K[IF*CLg:U0H/E}*'&$"c4"HCrHR;?Uk\%U}TBTb;GFrr**>=q3C@8_0]&!)`vc~Q#b`k`\]F=3#g4w)9pxI|qjPK:lTRU`UTb-w]mZ4OU6 Original-Lines: 51 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29244 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29244 >>>>> "David" == David Kagedal writes: David> (defconst lysator-imap-method '(nnimap "lysator" David> (nnimap-address "imap.lysator.liu.se") (nnimap-list-pattern David> ("INBOX" "mail/*")) (prefix "mail/"))) David> I implemented a user format function, and use %uG instead of David> %G. David> (setq gnus-group-line-format "%m%M%S%p%5y: %(%uG%)\n") David> The function does one more trick; if the group parameters David> contains a 'name parameter, its value is used instead. Hi David, NAME: I tried and liked your code. However, when I do a ¨G c¨ (to customize a group) Gnus chokes on the new 'name' attribute. Signaling: (wrong-type-argument listp "Ding") widget-match-inline((sexp :tag "Value" :value "nil") "Ding") widget-group-match-inline((list :format "%v" :value (nil nil) :args ((symbol :tag "Variable" :value "nil") (sexp :tag "Value" :value "nil"))) (name . "Ding")) widget-group-match((list :format "%v" :value (nil nil) :args ((symbol :tag "Variable" :value "nil") (sexp :tag "Value" :value "nil"))) (name . "Ding")) [...] Also, I would suggest a more explicative name for the parameter, for example display-name or preferred-display-name. PREFIX MASKING: Even though Your solution provides some a cosmetical cover-up to the previously described problem, the prefix-masking should be applied on a lower level, so that the existence of a prefix is transparent for the user. Example: When I want to copy a message to group, which prefix has been masked, I still need to know the prefix. Again, I suggest a better name which captures more the nature of the parameter (for example prefix-to-mask or remove-prefix ) CU Arnd. -- Arnd Kohrs - kohrs@acm.org - http://www.eurecom.fr/~kohrs The Active WebMuseum: Your personalized access to art paintings. Visit now -> http://www.eurecom.fr/~kohrs/museum.html