unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61291: 29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented
@ 2023-02-05  9:27 Mohammed Sadiq
  2023-02-05 23:22 ` Yuan Fu
  0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Sadiq @ 2023-02-05  9:27 UTC (permalink / raw)
  To: 61291

; 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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#61291: 29.0.60; c-ts-mode: semi-colon after  conditionals/loops not indented
  2023-02-05  9:27 bug#61291: 29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented Mohammed Sadiq
@ 2023-02-05 23:22 ` Yuan Fu
  2023-02-06  6:02   ` Mohammed Sadiq
  0 siblings, 1 reply; 4+ messages in thread
From: Yuan Fu @ 2023-02-05 23:22 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 61291-done


Mohammed Sadiq <sadiq@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#61291: 29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented
  2023-02-05 23:22 ` Yuan Fu
@ 2023-02-06  6:02   ` Mohammed Sadiq
  2023-02-07  3:01     ` Yuan Fu
  0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Sadiq @ 2023-02-06  6:02 UTC (permalink / raw)
  To: Yuan Fu; +Cc: 61291-done

On 2023-02-06 04:52, Yuan Fu wrote:
> Mohammed Sadiq <sadiq@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();





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#61291: 29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented
  2023-02-06  6:02   ` Mohammed Sadiq
@ 2023-02-07  3:01     ` Yuan Fu
  0 siblings, 0 replies; 4+ messages in thread
From: Yuan Fu @ 2023-02-07  3:01 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 61291-done



> On Feb 5, 2023, at 10:02 PM, Mohammed Sadiq <sadiq@sadiqpk.org> wrote:
> 
> On 2023-02-06 04:52, Yuan Fu wrote:
>> Mohammed Sadiq <sadiq@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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-07  3:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-05  9:27 bug#61291: 29.0.60; c-ts-mode: semi-colon after conditionals/loops not indented Mohammed Sadiq
2023-02-05 23:22 ` Yuan Fu
2023-02-06  6:02   ` Mohammed Sadiq
2023-02-07  3:01     ` Yuan Fu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).