unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* cc-mode auto indent, topmost-intro-cont vs. member-init-intro
@ 2013-01-23 19:52 Brian Fallik
  0 siblings, 0 replies; only message in thread
From: Brian Fallik @ 2013-01-23 19:52 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm trying to diagnose a recent issue I encountered after upgrading
from Fedora 16 (emacs 23.1) to 17 (emacs 24.1).  After upgrading,
emacs is formatting the ctor member initializer list incorrectly.  C-c
C-s over the ':' character starting the list outputs
'topmost-intro-cont'.  When I press <tab> emacs reformats the line to
start from column 0:
        ...
        Type last_ctor_arg)
: mXid(id),
instead of c-basic-offset like it used to:
        ...
        Type last_ctor_arg)
    : mXid(id),

Even more confusing is that I was able to avoid the problem by
removing (or commenting out) ctor arguments.  It's as though the
parser gives up after a certain number or text size of the args.

Here's the a snippet of the original code:  http://pastebin.com/i2rR2zDZ

I'm not sure if this is a bug, a misconfiguration, or something else
but the behavior seems odd to me.

Thanks,
brian



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-23 19:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-23 19:52 cc-mode auto indent, topmost-intro-cont vs. member-init-intro Brian Fallik

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).