unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: c++ indentation gets messed up quite often
Date: Thu, 20 Sep 2012 09:58:13 -0400	[thread overview]
Message-ID: <jwvipb8ztoq.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: b7e49681-15c3-4086-9d26-8c5d61e7b83b@googlegroups.com

> The indentation gets quite messed up while in the middle of editing a file.
> eg: The new code will get indented to the column 0.

If you can reproduce this more or less easily, please try and
(setq c-debug-parse-state t).  You have to do this before loading
c-mode, so either do it in your .emacs, or do
M-x load-library RET cc-engine RET afterwards for it to take effect.

This should hopefully catch the problem right when it shows up and log
some debug info in your *Messages* buffer, which you can then send via
M-x report-emacs-bug.


        Stefan


      parent reply	other threads:[~2012-09-20 13:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-20  2:43 c++ indentation gets messed up quite often sunil
2012-09-20  3:31 ` Sohail Somani
2012-09-20  4:34   ` Tima
2012-09-20 13:48 ` Stefan Monnier
2012-09-20 15:01   ` Sohail Somani
2012-09-20 16:21   ` Lowell Gilbert
2012-09-20 13:58 ` Stefan Monnier [this message]

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=jwvipb8ztoq.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.
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).