Subject: Re: bug#18970: 24.3; indent region fails in C++ mode after adding a #include

From: Alan Mackenzie <[email-masked]>
Date: 6 Nov 2014 11:54:29 -0000

Hello, Piotr.
In article <[email-masked]> you wrote:
> 1. Edited a C++ header file in a buffer.
> 2. Switched to another buffer.
> 3. Went back to buffer in #1, above.
> 4. Added a #include to the top of the buffer.
> 5. Indentation for all code blocks following the include, when using
> TAB, resets to line 0.

This bug will be dependent on the exact contents of the file, or at least
the first few hundred or thousand bytes in it.  Is there any chance you
could post the file as it was just before you edited it in step 1., and
say exactly what keys you used for 1. - 4.?

Thanks!

> In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
> of 2014-03-07 on lamiak, modified by Debian
> Windowing system distributor `The X.Org Foundation', version 11.0.11501000
> System Description:     Ubuntu 14.04.1 LTS

[ ... ]

-- 
Alan Mackenzie (Nuremberg, Germany).