GNU bug report logs - #61291
29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Sun, 5 Feb 2023 09:29:01 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 61291 in the body.
You can then email your comments to 61291 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61291; Package emacs. (Sun, 05 Feb 2023 09:29:01 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. (Sun, 05 Feb 2023 09:29:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented
Date: Sun, 05 Feb 2023 14:57:55 +0530
; in the following code is not indented:

while (str_a[i++] == str_b[j++])
;

expected indentation:

while (str_a[i++] == str_b[j++])
  ;

In GNU Emacs 29.0.60 (build 12, x86_64-pc-linux-gnu, GTK+ Version
 3.24.36, cairo version 1.16.0) of 2023-02-05 built on purism
Repository revision: 2c33e2889b4d711689a606d175ff56931c157fb4
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 
11.0.12101006
System Description: Debian GNU/Linux bookworm/sid




Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Sun, 05 Feb 2023 23:23:02 GMT) Full text and rfc822 format available.

Notification sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
bug acknowledged by developer. (Sun, 05 Feb 2023 23:23:02 GMT) Full text and rfc822 format available.

Message #10 received at 61291-done <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 61291-done <at> debbugs.gnu.org
Subject: Re: bug#61291: 29.0.60; c-ts-mode: semi-colon after 
 conditionals/loops not indented
Date: Sun, 5 Feb 2023 15:22:26 -0800
Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:

> ; in the following code is not indented:
>
> while (str_a[i++] == str_b[j++])
> ;
>
> expected indentation:
>
> while (str_a[i++] == str_b[j++])
>   ;

Thanks! I pushed a fix.

Yuan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61291; Package emacs. (Mon, 06 Feb 2023 06:03:01 GMT) Full text and rfc822 format available.

Message #13 received at 61291-done <at> debbugs.gnu.org (full text, mbox):

From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 61291-done <at> debbugs.gnu.org
Subject: Re: bug#61291: 29.0.60; c-ts-mode: semi-colon after
 conditionals/loops not indented
Date: Mon, 06 Feb 2023 11:32:20 +0530
On 2023-02-06 04:52, Yuan Fu wrote:
> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
> 
>> ; in the following code is not indented:
>> 
>> while (str_a[i++] == str_b[j++])
>> ;
>> 
>> expected indentation:
>> 
>> while (str_a[i++] == str_b[j++])
>>   ;
> 
> Thanks! I pushed a fix.
> 
> Yuan

This seems to have not fixed when tested with the latest build.
Also, this has broken auto indentation for other code, eg:

if (true)
do_something();




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61291; Package emacs. (Tue, 07 Feb 2023 03:30:02 GMT) Full text and rfc822 format available.

Message #16 received at 61291-done <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 61291-done <at> debbugs.gnu.org
Subject: Re: bug#61291: 29.0.60; c-ts-mode: semi-colon after
 conditionals/loops not indented
Date: Mon, 6 Feb 2023 19:01:41 -0800

> On Feb 5, 2023, at 10:02 PM, Mohammed Sadiq <sadiq <at> sadiqpk.org> wrote:
> 
> On 2023-02-06 04:52, Yuan Fu wrote:
>> Mohammed Sadiq <sadiq <at> sadiqpk.org> writes:
>>> ; in the following code is not indented:
>>> while (str_a[i++] == str_b[j++])
>>> ;
>>> expected indentation:
>>> while (str_a[i++] == str_b[j++])
>>>  ;
>> Thanks! I pushed a fix.
>> Yuan
> 
> This seems to have not fixed when tested with the latest build.
> Also, this has broken auto indentation for other code, eg:
> 
> if (true)
> do_something();

Hey sorry, I somehow didn’t actually push the change, while claiming to have done so. The latest commit (now pushed) is working fine AFAICT.

Yuan



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 07 Mar 2023 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.