* C++ formatting gets messed up
@ 2017-05-05 14:59 sellputcall
2017-05-05 15:21 ` Óscar Fuentes
0 siblings, 1 reply; 2+ messages in thread
From: sellputcall @ 2017-05-05 14:59 UTC (permalink / raw)
To: help-gnu-emacs
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.
Sunil
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C++ formatting gets messed up
2017-05-05 14:59 C++ formatting gets messed up sellputcall
@ 2017-05-05 15:21 ` Óscar Fuentes
0 siblings, 0 replies; 2+ messages in thread
From: Óscar Fuentes @ 2017-05-05 15:21 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: sellputcall
sellputcall@gmail.com writes:
> Issue with C++ formatting
Bugs reported on this mailing list most likely will be ignored.
Please use M-x report-emacs-bug
Add detailed steps for reproducing the problem, preferably starting with
emacs -Q
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-05 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-05 14:59 C++ formatting gets messed up sellputcall
2017-05-05 15:21 ` Óscar Fuentes
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).