Subject: Re: bug#36802: CC Mode 5.34 (C/*l); Spurious indentation in line after open #include
From: Alan Mackenzie <[email-masked]>
To: Richard Copley <[email-masked]>
Cc: [email-masked]
Date: Fri, 2 Aug 2019 13:44:14 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello, Richard.

On Wed, Jul 24, 2019 at 21:04:03 +0100, Richard Copley wrote:
> Package: cc-mode

> (From "emacs -Q".) In an empty C++ buffer, type [#include SPC <ab> C-p
> BACKSPACE C-e RET], or (for a more realistic example), correct
> "#include <asio/asio.hpp>" to "#include <asio.hpp>" like this:

>  ...asio.hpp             ;; self-insert-command
>  >                       ;; c-electric-lt-gt
>  M-b                     ;; backward-word
>  M-b                     ;; backward-word
>  <C-backspace>           ;; backward-kill-word
>  M->                     ;; end-of-buffer
>  <return>                ;; newline

> The new line is indented one level (expected zero levels). This
> corrects itself after doing M-x normal mode.

I've committed the patch we were discussing, and I'm closing this bug.

-- 
Alan Mackenzie (Nuremberg, Germany).