[Top][All Lists]

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

bug#5570: Emacs C++ mode "ESC C-q" and TAB indenting issue.

From: Bob
Subject: bug#5570: Emacs C++ mode "ESC C-q" and TAB indenting issue.
Date: Wed, 17 Feb 2010 08:40:36 -0800


Attached is "Foo.cpp" and "dribble" (if I did it correctly, dribble recorded
what I typed).

It illustrates a case where indentation is one level deeper than it should
be. (The other case we've been working on is one level shallower than it
should be). Maybe they are related?

visit-file "Foo.cpp", note indentation for "class Bar" is too deep. Now, TAB
on the "class Bar" line the indentation corrects. If you reconstruct the
file from "dribble" you should see TAB on the "class Bar" line incorrectly
indents too deep.

My ".emacs" file sets indentation to 2 spaces. I would guess there is an
issue where
the default (I think 4 spaces) is being used instead of my setting.

I've also attached my ".emacs" file as "emacs_init" (Outlook doesn't attach
files without a file-name). Please excuse the accumulation of junk in it
from many years of emacs use and
recommendations obtained from internet sites.


    class Bar,
    int _depth = -1
class Foo;

  int _depth = -1
class Foo

Attachment: dribble
Description: Binary data

Attachment: Foo.cpp
Description: Text document

Attachment: emacs_init
Description: Binary data

reply via email to

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