emacs-devel
[Top][All Lists]
Advanced

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

address@hidden: c-mode syntactic analysis regression in emacs-22.1]


From: Richard Stallman
Subject: address@hidden: c-mode syntactic analysis regression in emacs-22.1]
Date: Sat, 01 Dec 2007 18:41:07 -0500

[I sent this message to bug-cc-modea week ago but did not get a
response, so now I am sending it to emacs-devel as well.]

Can you please DTRT and ack?

------- Start of forwarded message -------
X-Spam-Status: No, score=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,
        UNPARSEABLE_RELAY autolearn=no version=3.1.0
Date: Sat, 24 Nov 2007 18:04:41 +0100
From: Eric Faurot <address@hidden>
To: address@hidden
Message-ID: <address@hidden>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Subject: c-mode syntactic analysis regression in emacs-22.1

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.
------- End of forwarded message -------





reply via email to

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