unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Herbert Euler" <herberteuler@hotmail.com>
Subject: RE: Another small problem of CC Mode
Date: Fri, 12 Jan 2007 10:05:01 +0800	[thread overview]
Message-ID: <BAY112-F19DEA2D62E60AE1156977EDAB00@phx.gbl> (raw)
In-Reply-To: <BAY112-F1841EE7751C2F2CD25C49CDAB00@phx.gbl>

This also shows the advantage of GNU style ;-)

Regards,
Guanpeng Xu


>From: "Herbert Euler" <herberteuler@hotmail.com>
>To: emacs-devel@gnu.org
>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
>Emacs-devel@gnu.org
>http://lists.gnu.org/mailman/listinfo/emacs-devel

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

  reply	other threads:[~2007-01-12  2:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12  1:58 Another small problem of CC Mode Herbert Euler
2007-01-12  2:05 ` Herbert Euler [this message]
2007-01-12  3:13 ` Alfred M. Szmidt
2007-01-12  9:03 ` Alan Mackenzie
2007-01-12 10:06   ` Herbert Euler
2007-01-13  2:12     ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY112-F19DEA2D62E60AE1156977EDAB00@phx.gbl \
    --to=herberteuler@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).