From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: [BUG] Regexp compiler, problem with character classes Date: Wed, 13 Sep 2006 15:25:15 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1158175769 25884 80.91.229.2 (13 Sep 2006 19:29:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Sep 2006 19:29:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 13 21:29:28 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GNaQH-0003xg-3W for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2006 21:29:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNaQG-0000BE-IM for ged-emacs-devel@m.gmane.org; Wed, 13 Sep 2006 15:29:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GNaMI-0002Jf-60 for emacs-devel@gnu.org; Wed, 13 Sep 2006 15:25:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GNaMG-0002H2-Fa for emacs-devel@gnu.org; Wed, 13 Sep 2006 15:25:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNaMG-0002Gh-9X for emacs-devel@gnu.org; Wed, 13 Sep 2006 15:25:16 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GNaO2-0000Lf-SE for emacs-devel@gnu.org; Wed, 13 Sep 2006 15:27:06 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GNaMF-00086U-CG; Wed, 13 Sep 2006 15:25:15 -0400 Original-To: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) In-reply-to: (bojohan+news@dd.chalmers.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:59797 Archived-At: Yes, but that is too late. What matters is which syntax is seen by the regexp *compiler* (this is why there is a problem in the first place) when it transforms [[:space:]] into [\t\f etc]. This has already happened before re_search_2 comes into play. I see. Thanks. Does this fix that problem? *** regex.c 22 Feb 2006 13:56:52 -0500 1.211 --- regex.c 13 Sep 2006 15:22:57 -0400 *************** *** 6197,6202 **** --- 6197,6206 ---- { reg_errcode_t ret; + #ifdef emacs + gl_state.current_syntax_table = current_buffer->syntax_table; + #endif + /* GNU code is written to assume at least RE_NREGS registers will be set (and at least one extra will be -1). */ bufp->regs_allocated = REGS_UNALLOCATED;