>>>> "Olivier" == Olivier Fambon
<Olivier.Fambon(a)inrialpes.fr> writes:
Olivier> Hi all, [this is a repost]
Olivier> Try this one:
Olivier> class Bozo {
Olivier> void func() {
Olivier> if () {
Olivier> if () { //
Olivier> }
Olivier> } else {
Olivier> /* */
Olivier> }
Olivier> }
Olivier> }
Olivier> The last '}' will not indent correctly.
Olivier> - removing the first // comment, or adding a */ cures the problem
Olivier> - removing one level of if() does not show the problem
Olivier> I already submitted this to bug-cc-mode@gnu.org... but...
Olivier> It does not seem to be a cc-mode bug, coz it works in
Olivier> 21.1.8 with the same cc-mode package installed.
Olivier> It does not work under any of the 21.4.x XEmacses.
Olivier> Moreover, parens-highlighting behaves strangely:
Olivier> - it works 'forward', i.e putting the cursor on func()'s {
shows a
Olivier> correct match, but
Olivier> - it does not work 'backwards', i.e putting the cursor on
func()'s
Olivier> last } shows am incorrect match.
Hi Olivier,
I can confirm all of the breakage with a -vanilla
(emacs-version)
"XEmacs 21.5 (beta1) \"anise\" [Lucid] (i586-pc-win32) of Tue May 29
2001 on D5DC120J"
Adrian
Olivier> Any ideas on what's wrong ? Thanxs.
--
Adrian Aichner
mailto:adrian@xemacs.org
http://www.xemacs.org/