From: "Herbert Euler" <address@hidden>
To: address@hidden
Subject: Another small problem of CC Mode
Date: Fri, 12 Jan 2007 09:58:31 +0800
Hi,
In a file that contains C program like this:
extern void g(void);
extern void h(void);
int
f(void)
{
do {
#ifdef M1
} while (g());
#else
} while (h());
#endif /* M1 */
}
Many functions in CC mode will behave incorrectly:
`c-beginning-of-defun' and `c-end-of-defun' cannot go to the right
place; `c-indent-command' cannot indent to the right column;
`c-electric-brace' tells an error, which is not, when typing the `}'
that finishes the function `f'; and so on.
Of course, this is rare. But will making CC Mode detect this
situation and behave in a right way need much effort?
Thanks in advance.
Regards,
Guanpeng Xu
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
_______________________________________________
Emacs-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-devel