From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/23608 Path: main.gmane.org!not-for-mail From: Alexandre Oliva Newsgroups: gmane.emacs.gnus.general Subject: Re: `nnmail-split-fancy' regexp Date: 28 Jun 1999 16:11:28 -0300 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 1035161309 2922 80.91.224.250 (21 Oct 2002 00:48:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:48:29 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA16600 for ; Mon, 28 Jun 1999 15:14:33 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB26161; Mon, 28 Jun 1999 14:13:33 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 28 Jun 1999 14:14:22 -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 OAA20601 for ; Mon, 28 Jun 1999 14:14:07 -0500 (CDT) Original-Received: from grande.dcc.unicamp.br (grande.dcc.unicamp.br [143.106.1.11]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA16585 for ; Mon, 28 Jun 1999 15:13:04 -0400 (EDT) Original-Received: from amazonas.dcc.unicamp.br (amazonas.dcc.unicamp.br [143.106.7.11]) by grande.dcc.unicamp.br (8.9.1/8.9.1) with ESMTP id QAA25658; Mon, 28 Jun 1999 16:07:40 -0300 (EST) Original-Received: from saci.lsd.dcc.unicamp.br (saci.lsd.dcc.unicamp.br [143.106.23.3]) by amazonas.dcc.unicamp.br (8.8.5/8.8.5) with SMTP id QAA09425; Mon, 28 Jun 1999 16:07:40 -0300 (EST) Original-To: Per Abrahamsen In-Reply-To: Per Abrahamsen's message of "28 Jun 1999 20:49:02 +0200" Original-Lines: 46 User-Agent: Gnus/5.070088 (Pterodactyl Gnus v0.88) XEmacs/20.4 (Emerald) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:23608 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:23608 On Jun 28, 1999, Per Abrahamsen wrote: > amu@MIT.EDU (Aaron M. Ucko) writes: >> Lars Magne Ingebrigtsen writes: >> > Per Abrahamsen writes: >> > > How about using ".*" as the magic prefix instead? >> > Sounds like a good idea. >> Uhm, no. As Alexandre Oliva observed a couple of days ago in > And how is this relevant for what the magic prefix should be? Ah, now I get it. You're not suggesting that the feature is unnecessary, you're just suggesting a different magic prefix. Just a nit: in the case of \& substitutions, it isn't clear whether the .* prefix is included in the match. With the `[partial]' implementation, it is not, which sounds reasonable, and probably matches the users' expectations. With `.*', it would not be immediately clear whether `.*' is just a magic prefix or if it's actually part of the regex. Moreover, it would match everything up to the begining of the line, including the field name, which would break the multi-match mechanism introduced in my last patch. Let me try to clarify. Given a header line such as: To: foo, bar If we have rules for cross-posting that match both `foo' and `bar', say `.*\(foo\|bar\)', `foo' will not be matched if `.*' is considered part of the regexp, because the next backward-search would start just before the previous match, i.e., just before the `To'. So, even though `.*' appears to be much more intuitive, it is not really that intuitive if you don't happen to know what's going on behind the scenes, so I'd rather have a prefix that is clearly not part of the regexp. It might have been better to use a (cons 'partial "regex") to denote partial matches... -- Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il {oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org} oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org} *** E-mail about software projects will be forwarded to mailing lists