From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Bug in looking-at? Date: Sat, 13 Aug 2005 21:57:32 +0200 Message-ID: <42FE50AC.9030707@student.lu.se> References: <42FE216D.6070709@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1123963364 24573 80.91.229.2 (13 Aug 2005 20:02:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2005 20:02:44 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 13 22:02:32 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E42C5-0000mk-96 for ged-emacs-devel@m.gmane.org; Sat, 13 Aug 2005 22:01:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E42FM-0002i9-IU for ged-emacs-devel@m.gmane.org; Sat, 13 Aug 2005 16:04:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E42DT-0001sg-5R for emacs-devel@gnu.org; Sat, 13 Aug 2005 16:02:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E42DH-0001qB-RP for emacs-devel@gnu.org; Sat, 13 Aug 2005 16:02:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E42DH-0001nm-9c for emacs-devel@gnu.org; Sat, 13 Aug 2005 16:02:39 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E42NH-0002N0-Ot for emacs-devel@gnu.org; Sat, 13 Aug 2005 16:13:00 -0400 Original-Received: from [192.168.123.121] (83.249.204.240) by pne-smtpout2-sn1.fre.skanova.net (7.2.060.1) id 42B9371700809A47 for emacs-devel@gnu.org; Sat, 13 Aug 2005 21:57:33 +0200 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Original-To: Emacs Devel In-Reply-To: <42FE216D.6070709@student.lu.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:42007 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42007 Lennart Borgman wrote: > Second time today I think I have found a bug... What should I say... > Hope this one is ok ;-) > > (defun bug-looking-at() > "Instructions for showing the possible bug: > 1. Place the point before \(interactive\) and run this function. > The first looking-at succeeds, the second fails. > 2. Then copy the last (looking-at ...), place point as before and run > with M-S-:. > It should fail to match again. > 3. Now recall this in M-S-: and add character s last in the regexp. > This time it should match. Try removing the s again..." > (interactive) > (unless (looking-at "(interactive)") > (error "Please put the point at \(interactive\)")) > (message "Second (looking-at ...) => %s" (looking-at > "(interactive)[[:space:]]+(unles"))) > > I am doing this on w32, Emacs from 9 aug, emacs -Q. Some more information. Looking at the char syntax: (message "%s,%s,%s" (string (char-syntax ?\t)) (string (char-syntax ?\r)) (string (char-syntax ?\n))) gives " ,_,>" -- this is whitespace character, symbol constituent and comment ender. Could part of the problem here be that the syntax table is broken on w32 since ?\r is symbol constituent? But this can not be the whole story, since it behaves differently when run through -S-: