Hi, Jan,
On Fri, Mar 19, 2010 at 11:45:40PM +0100, Jan Djärv wrote:
Alan Mackenzie skrev 2010-03-19 22.56:
Hi, Paul,
On Thu, Mar 18, 2010 at 10:05:11PM +0200, Paul Pogonyshev wrote:
After March the 1st changes indentation in C++ and related modes is
better, but it still breaks often enough --- to the tune of once every
3--5 minutes or so. Both when editing C++ and Java code.
How about plain C? Is the breakage connected with templates/generics, as
far as you can see?
FWIW, I see breakage in plain C also.
That's worth a great deal to know. It suggests that the changes of
2010-02-04 aren't responsble for this bug.
What is the breakage like? Is it a one-off failure which repairs itself
after a few more edits, or is it more like a creeping death? Does
reinitializing the mode (M-x c++-mode) repair the indentation? Does
saving the file and reloading it fix things?
I now more or less automatically do M-x revert buffer when this happens.
When _what_ happens?
I take it, then, that revert-buffer fixes the bad
state, and you save the file first before reverting it. Any chance you
could answer the above questions, together with the further one:
Does
M-x (c-state-cache-init)
fix it?