GNU bug report logs -
#61398
29.0.60; c-ts-mode: '}' indented wrong if '{' pair is in line with '='
Previous Next
Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Date: Fri, 10 Feb 2023 06:24:02 UTC
Severity: normal
Found in version 29.0.60
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61398 in the body.
You can then email your comments to 61398 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61398
; Package
emacs
.
(Fri, 10 Feb 2023 06:24:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Mohammed Sadiq <sadiq <at> sadiqpk.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 10 Feb 2023 06:24:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The closing '};' is indented wrong in the following array definition:
const char *emoticons[][2] = {
{":)", "🙂"},
{";)", "😉"},
{":(", "🙁"},
};
The expected indentation:
const char *emoticons[][2] = {
{":)", "🙂"},
{";)", "😉"},
{":(", "🙁"},
};
The issue is not limited to arrays, but also types like structs.
In GNU Emacs 29.0.60 (build 17, x86_64-pc-linux-gnu, GTK+ Version
3.24.36, cairo version 1.16.0) of 2023-02-10 built on purism
Repository revision: 51901736965f9a6f07938fa4399d14c9283437c5
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version
11.0.12101006
System Description: Debian GNU/Linux bookworm/sid
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#61398
; Package
emacs
.
(Sun, 12 Feb 2023 08:23:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 61398 <at> debbugs.gnu.org (full text, mbox):
Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
> The closing '};' is indented wrong in the following array definition:
>
> const char *emoticons[][2] = {
> {":)", "🙂"},
> {";)", "😉"},
> {":(", "🙁"},
> };
>
> The expected indentation:
>
> const char *emoticons[][2] = {
> {":)", "🙂"},
> {";)", "😉"},
> {":(", "🙁"},
> };
I see, this problem is due to priorities between indentations rules.
Should be easy to fix.
Yuan
Reply sent
to
Yuan Fu <casouri <at> gmail.com>
:
You have taken responsibility.
(Mon, 13 Feb 2023 03:52:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Mohammed Sadiq <sadiq <at> sadiqpk.org>
:
bug acknowledged by developer.
(Mon, 13 Feb 2023 03:52:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 61398-done <at> debbugs.gnu.org (full text, mbox):
Yuan Fu <casouri <at> gmail.com> writes:
> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
>
>> The closing '};' is indented wrong in the following array definition:
>>
>> const char *emoticons[][2] = {
>> {":)", "🙂"},
>> {";)", "😉"},
>> {":(", "🙁"},
>> };
>>
>> The expected indentation:
>>
>> const char *emoticons[][2] = {
>> {":)", "🙂"},
>> {";)", "😉"},
>> {":(", "🙁"},
>> };
>
> I see, this problem is due to priorities between indentations rules.
> Should be easy to fix.
>
> Yuan
Ok, this should be fixed now.
Yuan
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 13 Mar 2023 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 97 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.