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: Thu, 07 Sep 2006 17:15:07 -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 1157663888 30651 80.91.229.2 (7 Sep 2006 21:18:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2006 21:18:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 07 23:18:06 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 1GLRFt-000658-9p for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 23:17:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLRFs-0002js-LH for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 17:17:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLRDJ-0005Ww-M3 for emacs-devel@gnu.org; Thu, 07 Sep 2006 17:15:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLRDJ-0005Vl-2J for emacs-devel@gnu.org; Thu, 07 Sep 2006 17:15:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLRDI-0005VX-Rh for emacs-devel@gnu.org; Thu, 07 Sep 2006 17:15:08 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLRDk-0006cQ-So for emacs-devel@gnu.org; Thu, 07 Sep 2006 17:15:36 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GLRDH-0000n4-BR; Thu, 07 Sep 2006 17:15:07 -0400 Original-To: bojohan+mail@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) In-reply-to: (bojohan+mail@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:59526 Archived-At: (with-temp-buffer (string-match "x[[:space:]]" "x\n")) => nil (Fchar_syntax does gl_state.current_syntax_table = current_buffer->syntax_table;) re_search_2 does it also, thru the macro SETUP_SYNTAX_TABLE_FOR_OBJECT. I just verified that gl_state.current_buffer->syntax_table has the proper value after that line. So I do not understand why string-match returns the wrong value. There must be a reason, but it is not such a simple reason. Can someone debug it and figure that out?