* bug#6066: Incorrect C++ indentation in emacs 23.1.96
@ 2010-04-30 16:44 Bob
2011-10-03 22:35 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Bob @ 2010-04-30 16:44 UTC (permalink / raw)
To: 6066
[-- Attachment #1.1: Type: text/plain, Size: 1556 bytes --]
Emacs 23.1.96 incorrectly indents C++ line.
To reproduce:
Visit the attached "bug.H" file and do the following:
1. go-to-line 2 ( the "{")
2. C-e (end of line)
3. C-j (new line)
4. type in:
typedef TypeList<[C-j]
5. go-to-line 6 (Statement<Assign<EAsgn::Variable> >,)
6. C-k C-y (kill then yank)
7. go-to-line 4
8. C-y (you have just copied line 6)
Text now looks like:
namespace PT
{
typedef TypeList<
Statement<Assign<EAsgn::Variable> >,
typedef TypeList<
Statement<Assign<EAsgn::Variable> >,
Statement<Symbol<Parameter<EParm::Overload> > >,
Statement<Symbol<Parameter<EParm::Local> > >,
Statement<Instance>
>::Result
TStmtKindSet;
}
9. C-e (end of line 4)
10. [Backspace] (to delete ',')
11. C-j (new-line)
12. type in:
>::Result[TAB]TFoo;
13. go-to-line 7 (at beginning of line "typedef TypeList<")
14. [TAB] to indent <<<<<<<<<<<<< Incorrect indentation happens here
<<<<<<<<<<<<<<<<<<<
Text now looks like:
namespace PT
{
typedef TypeList<
Statement<Assign<EAsgn::Variable> >
>::Result TFoo;
typedef TypeList<
Statement<Assign<EAsgn::Variable> >,
Statement<Symbol<Parameter<EParm::Overload> > >,
Statement<Symbol<Parameter<EParm::Local> > >,
Statement<Instance>
>::Result
TStmtKindSet;
}
Observe line 7 indents incorrectly to column 0.
Saving the buffer, starting a new emacs 23.1.96, visit "bug.H", [TAB] on
line
7 re-indents correctly.
[-- Attachment #1.2: Type: text/html, Size: 7185 bytes --]
[-- Attachment #2: bug.H --]
[-- Type: text/plain, Size: 237 bytes --]
namespace PT
{
typedef TypeList<
Statement<Assign<EAsgn::Variable> >,
Statement<Symbol<Parameter<EParm::Overload> > >,
Statement<Symbol<Parameter<EParm::Local> > >,
Statement<Instance>
>::Result TStmtKindSet;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#6066: Incorrect C++ indentation in emacs 23.1.96
2010-04-30 16:44 bug#6066: Incorrect C++ indentation in emacs 23.1.96 Bob
@ 2011-10-03 22:35 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2011-10-03 22:35 UTC (permalink / raw)
To: 6066-done
Version: 24.1
I can reproduce this in Emacs 23.3, but not in the current trunk, so it
looks like it has been fixed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-03 22:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-30 16:44 bug#6066: Incorrect C++ indentation in emacs 23.1.96 Bob
2011-10-03 22:35 ` Glenn Morris
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.