all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* c-mode syntactic analysis regression in emacs-22.1
@ 2007-11-24 17:04 Eric Faurot
  0 siblings, 0 replies; only message in thread
From: Eric Faurot @ 2007-11-24 17:04 UTC (permalink / raw)
  To: bug-gnu-emacs

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.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-24 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-24 17:04 c-mode syntactic analysis regression in emacs-22.1 Eric Faurot

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.