[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74507: [PATCH] Indent compounds c-ts-mode when { is not BOL
From: |
Yuan Fu |
Subject: |
bug#74507: [PATCH] Indent compounds c-ts-mode when { is not BOL |
Date: |
Fri, 29 Nov 2024 16:16:02 -0800 |
> On Nov 29, 2024, at 1:05 AM, Jørgen Kvalsvik <j@lambda.is> wrote:
>
> On 11/29/24 08:57, Eli Zaretskii wrote:
>>> Cc: theo@thornhill.no,casouri@gmail.com
>>> From: Jørgen Kvalsvik <j@lambda.is>
>>> 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.
>
> Ok. Yuan, would you like me to submit a revision?
Since your assignment is already done, let’s just apply your patch, and I’ll
rebase my changes on top of yours. So yeah, do send the revision patch, thanks!
Yuan