[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ mode and c-beginning-of-current-token
From: |
Alan Mackenzie |
Subject: |
Re: C++ mode and c-beginning-of-current-token |
Date: |
12 May 2007 15:19:00 +0200 |
Date: |
Sat, 12 May 2007 15:41:05 +0100 |
User-agent: |
Mutt/1.5.9i |
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 and >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 <iostream>
> 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).