From unknown Fri Sep 19 18:23:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#69089 <69089@debbugs.gnu.org> To: bug#69089 <69089@debbugs.gnu.org> Subject: Status: [PATCH] Eagerly indent first field in tables in lua-ts-mode Reply-To: bug#69089 <69089@debbugs.gnu.org> Date: Sat, 20 Sep 2025 01:23:34 +0000 retitle 69089 [PATCH] Eagerly indent first field in tables in lua-ts-mode reassign 69089 emacs submitter 69089 john muhl severity 69089 normal tag 69089 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 21:40:26 2024 Received: (at submit) by debbugs.gnu.org; 13 Feb 2024 02:40:26 +0000 Received: from localhost ([127.0.0.1]:38409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZiif-0004Nf-5s for submit@debbugs.gnu.org; Mon, 12 Feb 2024 21:40:26 -0500 Received: from lists.gnu.org ([209.51.188.17]:39802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZiWh-0003rl-Fk for submit@debbugs.gnu.org; Mon, 12 Feb 2024 21:28:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZhW0-0002nQ-Ae for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 20:23:16 -0500 Received: from out-183.mta1.migadu.com ([95.215.58.183]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZhVy-0006Uy-Dh for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 20:23:16 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pub.pink; s=key1; t=1707787391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=H4iBBf4vja30zMwgp0K/ixD45TszeHbp7Czs6gjjqEg=; b=SFg1xFyQmz9F4/HyxXEszGgJ/19hsteFoRrjVUHWqr+ul0Kk43NW4dESGJ/KDTMjU6Ku/I jHLVEMenRqqmUNWZRZefryJ8xA6K3tN+YjPZ03fAhwW3LXZVtqN94rskRBuv4ZZY/TIpS6 2efD4IlNGqeZ0UBCys7IvBmTBWFPzcQ= From: john muhl To: bug-gnu-emacs@gnu.org Subject: [PATCH] Eagerly indent first field in tables in lua-ts-mode Date: Mon, 12 Feb 2024 19:23:03 -0600 Message-ID: <87sf1x6tu0.fsf@pub.pink> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=95.215.58.183; envelope-from=jm@pub.pink; helo=out-183.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Tags: patch lua-ts-mode supports aligning sibling fields to the first field so that you can have code like: local t =3D { a =3D 1, b =3D 2, } However if you prefer to put the first field on a newline like: local t =3D { a =3D 1, b =3D 2, } the indentation doesn=E2=80=99t happen until you press RET after the first comma. So you initially have something like (where | is point): local t =3D { | } This fixes that so the initial indentation is correct from the beginning: local t =3D { | } From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 22:34:16 2024 Received: (at 69089) by debbugs.gnu.org; 13 Feb 2024 03:34:16 +0000 Received: from localhost ([127.0.0.1]:39184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZjYl-0006g4-Rw for submit@debbugs.gnu.org; Mon, 12 Feb 2024 22:34:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45556) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZjYi-0006fg-61; Mon, 12 Feb 2024 22:34:12 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZjYL-0003fs-2V; Mon, 12 Feb 2024 22:33:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=rwKd2mVbOP0L9mn4sTnqlOOWLpOmkt5ey1Ma5b4i2Rc=; b=fo2/yFk/iOi3 /m52dcTypUvarSYqkUt4C3ah1HdltaTlBi+YkQIvaMqqRWbOj/YjxyCCsdI7xXkPR9uR3soCzKGqV jfL63/zL5/CYabvonFNayBf30p77OrcIkcpAwpJnW2Zgcgt2fvLj0sUweGk0lm5Z5o7GVEEaUpkzC MfPJb2VSuyCsa2bxhAZuSDLoifxOOFrubq6gAgLZkHAtucBmDvWptCfLTEO4HZx0a7l/ARypFRAYU 1rEUQt/IOpD/6xTIDuOrnzvW2oV8Ig5jL9C2kl0b5qmcOr1lEp2LMFXnebHM6mk0oxpwAq++dHyMi Ajnua6DjL8Hgx0ypI8OYrw==; Date: Tue, 13 Feb 2024 05:33:47 +0200 Message-Id: <868r3pqbqc.fsf@gnu.org> From: Eli Zaretskii To: john muhl In-Reply-To: <87sf1x6tu0.fsf@pub.pink> (bug-gnu-emacs@gnu.org) Subject: Re: bug#69089: [PATCH] Eagerly indent first field in tables in lua-ts-mode References: <87sf1x6tu0.fsf@pub.pink> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 69089 Cc: 69089@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) merge 69089 69088 thanks > Date: Mon, 12 Feb 2024 19:23:03 -0600 > From: john muhl via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Tags: patch > > lua-ts-mode supports aligning sibling fields to the first field > so that you can have code like: Merging the duplicate report. From unknown Fri Sep 19 18:23:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 16 Mar 2024 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator