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: 14 May 2007 10:50:15 +0200 Message-ID: <20070514101234.GA2221@muc.de> References: <20070513112331.GA2228@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179132645 4298 80.91.229.12 (14 May 2007 08:50:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 May 2007 08:50:45 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Herbert Euler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 14 10:50:43 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 1HnWGN-0007ti-UC for ged-emacs-devel@m.gmane.org; Mon, 14 May 2007 10:50:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnWO6-0007MN-Lw for ged-emacs-devel@m.gmane.org; Mon, 14 May 2007 04:58:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HnWO1-0007ME-9L for emacs-devel@gnu.org; Mon, 14 May 2007 04:58:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HnWO0-0007M2-0H for emacs-devel@gnu.org; Mon, 14 May 2007 04:58:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HnWNz-0007Lv-Rv for emacs-devel@gnu.org; Mon, 14 May 2007 04:58:31 -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 1HnWGE-0005Uh-1m for emacs-devel@gnu.org; Mon, 14 May 2007 04:50:30 -0400 Original-Received: (qmail 2283 invoked by uid 3782); 14 May 2007 08:50:15 -0000 Original-Received: from acm.muc.de (p54A3FCC7.dip.t-dialin.net [84.163.252.199]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Mon, 14 May 2007 10:50:12 +0200 Original-Received: (qmail 3340 invoked by uid 1000); 14 May 2007 10:12:34 -0000 Original-Date: Mon, 14 May 2007 11:12:34 +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:71012 Archived-At: Hi, Guanpeng! On Mon, May 14, 2007 at 10:00:59AM +0800, Herbert Euler wrote: > I looked at an older version of CC mode, the `c-after-change' function > does not call `c-trim-found-types', and the `c-before-change' function > does not exist. The error does not happen in that version. Both these > changes lead to the invocation of `c-beginning-of-current-token' as a > result. So I suspect these changes are the direct source of the error. As I said earlier, I think it more likely these changes in CC Mode have triggered a bug rather than being buggy themselves. (OK, anybody, feel free to demolish my hubris ;-) I haven't looked into it much, but it seems likely that the syntax.c stuff for a Unicode branch will have been enhanced to cope with the wierdnesses of that character set. Could you please run edebug[*] on c-beginning-of-current-token, and check that the arguments which are passed to skip-syntax-backwards are valid. If they're not, it's CC Mode's problem. If they are, let's wait and see what Stefan says. [*] If you're not familiar with Edebug, it's well described in the Elisp manual. Send me a private email if you want help to use it. > Regards, > Guanpeng Xu -- Alan Mackenzie (Ittersbach, Germany).