GNU bug report logs -
#24672
26.0.50; viper-mode + c-mode: "ce" fails in cpp-continued stmt
Previous Next
Full log
View this message in rfc822 format
> From: Jim Meyering <jim <at> 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.
This bug report was last modified 8 years and 233 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.