[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17756: indentation after declaring+initializing two arrays
From: |
Pietro Belotti |
Subject: |
bug#17756: indentation after declaring+initializing two arrays |
Date: |
Wed, 11 Jun 2014 15:26:35 +0100 |
Hello. I have a problem with Emacs (version: 23.4.1
(x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-08 on trouble,
modified by Debian [2 times]). A declaration is incorrectly indented
when following one where two or more arrays are declared and
initialized. The function foo() below has "char c = 'a';"
over-indented, while the function bar() following it has the same
declaration correctly indented.
int foo () {
int a [2] = {1,2},
b [2] = {3,4};
char c = 'a';
}
int bar () {
int
b [2] = {3,4};
char c = 'a';
}
This also happens if a newline is placed between "int" and "a [2]",
but it does not happen if a and b are declared on the same line. Both
M-x indent-region and moving the cursor and hitting TAB result in
this. I could not find any related issue in the mailing list archive,
is this expected behaviour?
Thanks,
Pietro
- bug#17756: indentation after declaring+initializing two arrays,
Pietro Belotti <=