[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24672: writing a test for Bug#24672 (viper mode malfunction while in
From: |
Eli Zaretskii |
Subject: |
bug#24672: writing a test for Bug#24672 (viper mode malfunction while inserting a paren in continued cpp directive) |
Date: |
Wed, 26 Oct 2016 14:51:38 +0300 |
> From: Jim Meyering <jim@meyering.net>
> Date: Tue, 25 Oct 2016 22:09:40 -0700
>
> This is a corner case.
> When I start in viper mode with this file contents:
>
> #define z_b\
>
> and then change the "z" to a parenthesis (either one), I get this:
>
> #define (z_b^I^I^I^I^I\$
>
> [I have represented each TAB as "^I", of course]
> Rather surprising to see all of those TAB characters inserted.
This is standard operation of the Emacs C mode: some characters,
including the left parenthesis, are "electric", in that they invoke
reindentation/reformatting of the current line. Type "C-h k (" to see
the documentation of that, including links to customization options,
which you can tweak if you don't like the default behavior.
IOW, I don't think this is a bug at all, but intended behavior.
Thanks.
P.S. Please don't cross-post to emacs-devel and the bug list.