[Top][All Lists]

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

C++ formatting gets messed up

From: sellputcall
Subject: C++ formatting gets messed up
Date: Fri, 5 May 2017 07:59:47 -0700 (PDT)
User-agent: G2/1.0

Issue with C++ formatting

Emacs version:
GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.4) of 2016-12-15

OS: Fedora 25

Issue with C++ mode and formatting.
matching paren mode: when at closing brace "}" highlight shows "<<" on previous 
line, and not the opening brace.
And formatting can get screwed up.

If I restart emacs and go to same point in buffer over the closing brace, the 
matching brace is highlighted correctly.
btw: I checked that my code is compilable.

so for the below code: if I am at the brace on line 3, the insertion operator 
on line 2: is highlighted: std::cerr << ...
1:   if ( !matched ) {
2:      std::cerr << "Fail to match for:" << origStr << std::endl;
3:   }

I have noticed this a few times lately and a couple of other weird behavior as 
of late.


reply via email to

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