GNU bug report logs - #73661
[PATCH] Anchor to first sibling unless bol-sibling found

Previous Next

Package: emacs;

Reported by: Jørgen Kvalsvik <j <at> lambda.is>

Date: Sun, 6 Oct 2024 16:06:02 UTC

Severity: normal

Tags: patch

Merged with 73662

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Jørgen Kvalsvik <j <at> lambda.is>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 73661 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 Theodor Thornhill <theo <at> thornhill.no>
Subject: Re: bug#73661: [PATCH] Anchor to first sibling unless bol-sibling
 found
Date: Tue, 8 Oct 2024 08:17:10 +0200
On 10/8/24 02:12, Yuan Fu wrote:
> 
> 
>> On Oct 6, 2024, at 6:44 AM, Jørgen Kvalsvik <j <at> lambda.is> wrote:
>>
>> Tags: patch
>>
>>
>> Indenting would give up when initializer lists and similar constructs
>> were broken up over multiple lines where the first item was not also
>> beginning-of-line.  Items should anchor on the first sibling (like with
>> function calls and init-lists in general). The search for a sibling to
>> anchor on should stop at the first sibling at bol or the first sibling
>> in the (sub)tree.
>>
>> This brings indent up to c-mode parity for code like:
>>
>> return { x1, x2, ...,
>>          y1, x2, ... };
> 
> Awesome! Thanks for the patch. Have you signed the copyright assignment? Eli, does this count as a significant contribution that requires the copyright assignment?
> 
> Yuan

I have requested the paperwork, but not signed yet.




This bug report was last modified 227 days ago.

Previous Next


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