From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28297 Path: main.gmane.org!not-for-mail From: Paul Stevenson Newsgroups: gmane.emacs.gnus.general Subject: Re: Name washing Date: 17 Dec 1999 08:47:57 -0500 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=us-ascii X-Trace: main.gmane.org 1035165171 29145 80.91.224.250 (21 Oct 2002 01:52:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:52:51 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by mailhost.sclp.com (Postfix) with ESMTP id 5A58DD051E for ; Fri, 17 Dec 1999 08:47:30 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.3/8.9.1) with ESMTP id HAB11591; Fri, 17 Dec 1999 07:46:42 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 17 Dec 1999 07:46:33 -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 HAA23192 for ; Fri, 17 Dec 1999 07:46:23 -0600 (CST) Original-Received: from bethe.phy.ornl.gov (bethe.phy.ornl.gov [134.167.21.204]) by mailhost.sclp.com (Postfix) with ESMTP id 6736ED051E for ; Fri, 17 Dec 1999 08:46:02 -0500 (EST) Original-Received: (from paul@localhost) by bethe.phy.ornl.gov (8.9.3/8.9.3) id IAA14248; Fri, 17 Dec 1999 08:47:57 -0500 Original-To: ding@gnus.org In-Reply-To: Jonas Steverud's message of "15 Dec 1999 09:59:52 +0100" Original-Lines: 28 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28297 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28297 Jonas Steverud writes: > Paul Stevenson writes: > > [...] > > (defun gnus-user-format-function-a (headers) > > (let ((name (aref headers 2))) > > (ps-wash-name name))) > > How does that work with the documentation? "The function will be > passed a single dummy parameter as argument." (node: Group Line > Specification) ^^^^^ > > Bug in the documentation? >>From the 5.8.2 docs which I just printed, section 3.1.1 [Summary Buffer Lines] I got "the function[1] will be passed the current header as argument". It didn't say in what form it would be, but I saw that it was a vector, with the From: line as its second element. I'm a bit worried that this is not the right way to do it. It probably wasn't a waste of time, after all, since getting the plain name sans email address as a string means that I can do the extra length reduction (turning first names into initials) as I had outlined in the first mail. [1] The gnus-user-format-function-X