From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/20424 Path: main.gmane.org!not-for-mail From: Jack Vinson Newsgroups: gmane.emacs.gnus.general Subject: Re: using multiple Summary buffer formats Date: 19 Jan 1999 08:54:39 -0600 Sender: owner-ding@hpc.uh.edu Message-ID: References: <199901112351.SAA18522@math.gatech.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035158716 17638 80.91.224.250 (21 Oct 2002 00:05:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:05:16 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA14237 for ; Tue, 19 Jan 1999 09:56:51 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id IAB21652; Tue, 19 Jan 1999 08:56:19 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 19 Jan 1999 08:56:23 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id IAA20534 for ; Tue, 19 Jan 1999 08:56:14 -0600 (CST) Original-Received: from gatekeeper4 (firewall-user@gatekeeper4.monsanto.com [204.233.233.42]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id JAA14217 for ; Tue, 19 Jan 1999 09:56:07 -0500 (EST) Original-Received: by gatekeeper4; id IAA01774; Tue, 19 Jan 1999 08:55:13 -0600 (CST) Original-Received: from unknown(137.35.49.136) by gatekeeper4.monsanto.com via smap (V4.2) id xma000669; Tue, 19 Jan 99 08:54:21 -0600 Original-To: ding@gnus.org X-Zippy: It's today's SPECIAL! In-Reply-To: Karl Kleinpaste's message of "Fri, 15 Jan 1999 09:27:04 -0500" Original-Lines: 30 User-Agent: Gnus/5.070071 (Pterodactyl Gnus v0.71) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:20424 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:20424 >>>>> "KK" == Karl Kleinpaste writes: KK> I suggest use of gnus-group-select-hook instead. This is mine: Another option is to create your own format-function to handle this. Since I use BBDB to extract user names for mail, the tricks to show the To: information in some groups is more difficult. This is what my setup looks like. Instead of %-20,20f, I have %-20,20ud to indicate use of the gnus-user-format-function-d. The function simply checks the group name and does either gnus-summary-from-or-to-or-newsgroups (the %f behavior) or bbdb/gnus-summary-get-author (the %uB behavior). (setq gnus-summary-line-format "%U%R%z%I%(%[%4L: %-20,20ud%]%) %s\n") (defun gnus-user-format-function-d (group-tmp) "Decide to use either the BBDB function or the %f form." (let ((group gnus-newsgroup-name)) ;; Set the Summary Line Format special for outgoing archives (if (and group (string-match "\\(drafts\\|misc-\\(mail\\|news\\)\\)" group)) ;; gnus-tmp-header is defined in the calling function (gnus-summary-from-or-to-or-newsgroups group-tmp) (bbdb/gnus-summary-get-author group-tmp) )) ) -- Jack Vinson http://www.cis.upenn.edu/~vinson/ Zippy: Did you GAIN WEIGHT in th' past 5 MINUTES or am I just DREAMING of two BROCCOLI FLORETS lying in an empty GAS TANK?