From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: C++ mode and c-beginning-of-current-token Date: 12 May 2007 15:19:00 +0200 Message-ID: <20070512144105.GA6108@muc.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1178975955 16705 80.91.229.12 (12 May 2007 13:19:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 12 May 2007 13:19:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Herbert Euler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 12 15:19:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HmrV9-0005d3-RE for ged-emacs-devel@m.gmane.org; Sat, 12 May 2007 15:19:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hmrcg-0004Xk-Qa for ged-emacs-devel@m.gmane.org; Sat, 12 May 2007 09:26:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hmrcc-0004XD-MD for emacs-devel@gnu.org; Sat, 12 May 2007 09:26:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hmrcb-0004Wz-V9 for emacs-devel@gnu.org; Sat, 12 May 2007 09:26:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hmrcb-0004Ww-OX for emacs-devel@gnu.org; Sat, 12 May 2007 09:26:53 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HmrV3-0006BM-OC for emacs-devel@gnu.org; Sat, 12 May 2007 09:19:06 -0400 Original-Received: (qmail 58043 invoked by uid 3782); 12 May 2007 13:19:00 -0000 Original-Received: from acm.muc.de (p54A3EA51.dip.t-dialin.net [84.163.234.81]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 12 May 2007 15:18:56 +0200 Original-Received: (qmail 6982 invoked by uid 1000); 12 May 2007 14:41:06 -0000 Original-Date: Sat, 12 May 2007 15:41:05 +0100 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.9 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:70889 Archived-At: Hi, Guanpeng! On Sat, May 12, 2007 at 06:39:12PM +0800, Herbert Euler wrote: > In the newest unicode 2 branch, `parse-sexp-lookup-properties' is > default to `t' in C++ mode but not in C mode. I don't have the > Emacs 22 trunk, and so don't know the case in that trunk. But > if this variable is set to t by default, there will be a bug in c++-mode: parse-sexp-lookup-properties is t in C++ Mode so that text properties can be set on pertinent s (in templates) to mark them as parentheses. > 1. Visit an empty, new C++ file. > 2. Try to insert the following line, at the beginning of the buffer: > #include > Well, an error will be signaled when typing the second character, "i", > says "Point before start of properties". This error happens in the > function `c-beginning-of-current-token', when invoking > `skip-syntax-backward': OK. This doesn't happen to me in the Emacs 22 release branch. But c-beginning-of-current-token was changed recently. I suspect you might have some option set which exposes a bug in that function. Did you start your emacs with -Q? If not does the error still happen when you do? If you didn't use -Q, could you please dump your CC Mode configuration with C-c C-b and post it here. [ .... ] > Regards, > Guanpeng Xu -- Alan Mackenzie (Ittersbach, Germany).