bug-gnu-emacs
[Top][All Lists]
Advanced

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

c-mode syntactic analysis regression in emacs-22.1


From: Eric Faurot
Subject: c-mode syntactic analysis regression in emacs-22.1
Date: Sat, 24 Nov 2007 18:04:41 +0100

Hello,

emacs-22.1 does not indent the following excerpt correctly because the syntactic
analyser tags the members appearing after "abaz" as k&r arguments.

==========
#define FOO(t) struct { struct t tv; struct t *tp; }

struct baz {
  int nothing;
};

struct bar {       /* ((topmost-intro 84)) */
  FOO(baz) abaz;   /* ((inclass 88) (topmost-intro 88)) */
           int a;  /* ((knr-argdecl 145)) !!! */
};
=========

emacs-21 works ok; it gives ((inclass . 88) (topmost-intro . 134)) for "int a;".

It is quite annoying, and I don't really know how to fix it.


Eric.




reply via email to

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