unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: "Jørgen Kvalsvik" <j@lambda.is>
Cc: 73661@debbugs.gnu.org, Eli Zaretskii <eliz@gnu.org>,
	Theodor Thornhill <theo@thornhill.no>
Subject: bug#73661: [PATCH] Anchor to first sibling unless bol-sibling found
Date: Mon, 7 Oct 2024 17:12:22 -0700	[thread overview]
Message-ID: <BA629E85-CBEE-407E-9EAC-233779772295@gmail.com> (raw)
In-Reply-To: <87y131wdk8.fsf@lambda.is>



> On Oct 6, 2024, at 6:44 AM, Jørgen Kvalsvik <j@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




  reply	other threads:[~2024-10-08  0:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-06 13:44 bug#73661: [PATCH] Anchor to first sibling unless bol-sibling found Jørgen Kvalsvik
2024-10-08  0:12 ` Yuan Fu [this message]
2024-10-08  6:17   ` Jørgen Kvalsvik
2024-10-08 11:59   ` Eli Zaretskii
2024-10-10  7:06     ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BA629E85-CBEE-407E-9EAC-233779772295@gmail.com \
    --to=casouri@gmail.com \
    --cc=73661@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=j@lambda.is \
    --cc=theo@thornhill.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).