From: Alan Mackenzie <acm@muc.de>
To: help-gnu-emacs@gnu.org
Subject: Re: c-mode seems broken
Date: Mon, 3 May 2010 16:48:39 +0000 (UTC) [thread overview]
Message-ID: <hrmup7$2t6h$1@colin2.muc.de> (raw)
In-Reply-To: 137ec390-a46a-45d5-9075-d984cb03f3c9@p2g2000yqh.googlegroups.com
Francis Moreau <francis.moro@gmail.com> wrote:
> Hello,
> Since a couple of months (I don't remember when exactly I first
> encounter this), the indentation stop working when editing a C source
> file. That is when I press <TAB> the line is indented at the start of
> the line (instead of inserting an appropriate number of spaces). To
> workaround this problem I do "M-x c-mode" and the indentation is
> working again.
> It seems that happens after adding/modifying code inside "#ifdef/
> #endif", but I'm not sure.
This is a known problem which has been fixed (by removing an
"improvement") in the soon-to-be-released Emacs 23.2. The "improvement"
itself has been fixed for the medium future Emacs 24.
The bug is triggered by inserting a newline at the end of any C
preprocessor line. This wrongly pushes a "CPP marker" (actually a text
property) onto the start of the next line.
> How can I fix this ?
Upgrade to Emacs 23.2 when it gets released. This could be as early as
the coming Friday.
Sorry for this bug.
> Thanks
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2010-05-03 16:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-03 8:57 c-mode seems broken Francis Moreau
2010-05-03 16:48 ` Alan Mackenzie [this message]
2010-05-04 19:22 ` Francis Moreau
2010-05-04 19:48 ` Alan Mackenzie
2010-05-05 4:08 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hrmup7$2t6h$1@colin2.muc.de' \
--to=acm@muc.de \
--cc=help-gnu-emacs@gnu.org \
/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 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.