emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ mode and c-beginning-of-current-token


From: Herbert Euler
Subject: Re: C++ mode and c-beginning-of-current-token
Date: Mon, 14 May 2007 17:24:55 +0800

> 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.

The argument is surely valid, but there are too many differences of syntax.c
between the main branch and the unicode 2 branch.  As you said, perhaps
the source of the unicode 2 branch is too old. Let's wait for Stefan's opinion.

Thank you very much.

Regards,
Guanpeng Xu

Btw, I thought except for unicode feature, the unicode 2 branch is the same
as the main branch.  So I am wrong.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]