Subject: bug#74507: [PATCH] Indent compounds c-ts-mode when { is not BOL

From: Eli Zaretskii <[email-masked]>
Date: Fri, 29 Nov 2024 09:57:03 +0200

> Cc: [email-masked],[email-masked]
> From: Jørgen Kvalsvik <[email-masked]>
> Date: Sun, 24 Nov 2024 10:15:12 +0100
> 
> * lisp/progmodes/c-ts-mode.el (c-ts-mode--parent-is-not-top-compound):
> New function.
> (c-ts-mode--indent-styles): Use it.
> * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New compound
> statement test.

Please make sure the lines here are not too long (see CONTRIBUTE for
details).

> +(defun c-ts-mode--parent-is-not-top-compound (_n parent &rest _)
> +  "Matches when PARENT is not the top level compound statement,
> +the {} that immediately follows the signature."

The first line of a doc string should be a single complete sentence.

Thanks.