From xemacs-m  Fri Jun 13 14:09:52 1997
Received: from bittersweet.inetarena.com (karlheg@bittersweet.inetarena.com [206.129.216.38])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id OAA17743
	for <xemacs-beta@xemacs.org>; Fri, 13 Jun 1997 14:09:46 -0500 (CDT)
Received: (from karlheg@localhost)
	by bittersweet.inetarena.com (8.8.5/8.8.5) id MAA24972;
	Fri, 13 Jun 1997 12:03:13 -0700
Date: Fri, 13 Jun 1997 12:03:13 -0700
Message-Id: <199706131903.MAA24972@bittersweet.inetarena.com>
From: "Karl M. Hegbloom" <karlheg@inetarena.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Hrvoje Niksic <hniksic@srce.hr>
Cc: XEmacs Developers <xemacs-beta@xemacs.org>,
        Michael R Cook <mcook@cognex.com>
Subject: Re: Regexp patch: DON'T apply it
In-Reply-To: <kigg1unnd82.fsf@jagor.srce.hr>
References: <kigg1unnd82.fsf@jagor.srce.hr>
X-Mailer: VM 6.32 under 20.3 "Moscow" XEmacs Lucid (beta6)
X-Face: /Q}=yl}1_v7nP)xXo5XjG8+tl@=uVu7o5u6)f]zN?+<hB!K.m9:[|*p34jVN`O;:XZXVSy>/\R>qDt(t8w!-i{(y0"`jFw^uk8inzO9wXabd'CdjUWfC\GHi:6nO*YC89#-qD>Q4r%9!V"<RYJ=7D#$";q=zML5'!=wvXk^$`6FT=5CMofQX)WUKt0p:OKl.mFOXx/D

>>>>> "Hrvoje" == Hrvoje Niksic <hniksic@srce.hr> writes:

    Hrvoje> It seems that the regexp patch is still not ready for
    Hrvoje> general use.  For example, I get the following error when
    Hrvoje> I try to enter a group:

    Hrvoje> Signaling: (invalid-regexp "Invalid preceding regular
    Hrvoje> expression") re-search-forward("\\bnews:\\([^>\n ]*@[^>\n
    Hrvoje> ]*+\\)" nil t) gnus-article-add-buttons()

From the blurb with the patch:

 - Other juxtaposing of * + and ? is rejected.  (Previously, "a*?" and "a+?"
   were the same as "a*"; and "a??" was the same as "a?".)

 That regex will work as intended if it is written as:

8<----------------------------------------------------------------->8
(re-search-forward "\\bnews:\\([^>\n	 ]*@[^>\n	 ]*\\)" nil nil)

blah news:karlheg@inetarena.com
8<----------------------------------------------------------------->8
... won't it?  The quantifier I deleted was not attached to a grouping
operator anyhow; so didn't really do anything anyhow.  It's like the
semi-colons in the new Bash.  We'd just have to weed out the similar
syntax errors.

-- 
Karl M. Hegbloom <karlheg@inetarena.com>
http://www.inetarena.com/~karlheg
Portland, OR  USA
Debian GNU 1.3  Linux 2.1.36 AMD K5 PR-133

