From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24913 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-post-method and message-expand-group Date: 27 Aug 1999 23:42:44 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <86aerdosid.fsf@slowfox.cs.uni-dortmund.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162396 11297 80.91.224.250 (21 Oct 2002 01:06:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:06:36 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA15075 for ; Fri, 27 Aug 1999 17:44:14 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB15900; Fri, 27 Aug 1999 16:43:39 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 27 Aug 1999 16:44:14 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA15351 for ; Fri, 27 Aug 1999 16:44:05 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de (waldorf.cs.uni-dortmund.de [129.217.4.42]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id RAA15053 for ; Fri, 27 Aug 1999 17:43:17 -0400 (EDT) Original-Received: from petty.cs.uni-dortmund.de (petty.cs.uni-dortmund.de [129.217.20.161]) by waldorf.cs.uni-dortmund.de with ESMTP id XAA06021 for ; Fri, 27 Aug 1999 23:42:45 +0200 (MES) Original-Received: (grossjoh@localhost) by petty.cs.uni-dortmund.de id XAA17308; Fri, 27 Aug 1999 23:42:45 +0200 (MET DST) Original-To: ding@gnus.org In-Reply-To: Lars Magne Ingebrigtsen's message of "27 Aug 1999 23:29:22 +0200" Original-Lines: 31 User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24913 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24913 Lars Magne Ingebrigtsen writes: > Well, how about if we incorporate message-x in Gnus, remove > message-expand-group and add instead an alist of abbrev expansion > thingies. Like: > > (defvar message-header-expansion-functions > ("^\\(Newsgroups\\|Followup-To\\|Posted-To\\|Gcc\\):" message-x-expand) > ("Some-other: " other-expanding-function)) > > If none of these match, then we call `tab-to-tab-stop', which will do > the abbrev abbrev expansion. > > Whaddayouthink? Well, message-x.el pretty much tries what you are suggesting here, I think. There's an alist which gives the expansion function for each header. For Newsgroups and Gcc and Followup-to, message-expand-group is called. message-x doesn't grok regexes in the alist, though. And we still need a second function similar to message-expand-group which looks at gnus-post-method. I'll try to do what you are suggesting, and I'll post the new message-x when I'm done. kai -- I like BOTH kinds of music.