emacs-devel
[Top][All Lists]
Advanced

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

Another small problem of CC Mode


From: Herbert Euler
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/





reply via email to

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