From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: john muhl via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#69088: [PATCH] Eagerly indent first field in tables in lua-ts-mode Date: Mon, 12 Feb 2024 19:00:04 -0600 Message-ID: <87a5o5rxez.fsf@pub.pink> Reply-To: john muhl Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31066"; mail-complaints-to="usenet@ciao.gmane.io" To: 69088@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 13 03:28:58 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rZiXY-0007o0-8t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Feb 2024 03:28:56 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZiXO-0007J4-JJ; Mon, 12 Feb 2024 21:28:46 -0500 Original-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 1rZiXN-0007In-IZ for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 21:28:45 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZiXN-0000NI-AX for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 21:28:45 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZiXe-0003vP-EB for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 21:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: john muhl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Feb 2024 02:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69088 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170779128814939 (code B ref -1); Tue, 13 Feb 2024 02:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Feb 2024 02:28:08 +0000 Original-Received: from localhost ([127.0.0.1]:38204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZiWm-0003st-6T for submit@debbugs.gnu.org; Mon, 12 Feb 2024 21:28:08 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:39802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZiWi-0003rl-TE for submit@debbugs.gnu.org; Mon, 12 Feb 2024 21:28:05 -0500 Original-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 1rZh9q-0007lq-B3 for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 20:00:22 -0500 Original-Received: from out-185.mta1.migadu.com ([2001:41d0:203:375::b9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZh9o-00038A-HB for bug-gnu-emacs@gnu.org; Mon, 12 Feb 2024 20:00:22 -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=1707786014; 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=lS7dnnITvrydze9pxrWbXB19Ygj32asNo8LmhLFN/oU=; b=day3irQRwcPx/uYHdns6miuhfIVF+xDk3c7LUkdD/wsUf70uSyzNsInU6VWuf4wpLgOxz0 r1XGSe5OLboE/UKITKfTEhCBjPOhjQPxWdE+O6LWeBWxwjTfE34NxWfENOdzXL+8gox1L0 IK6L9RWu/uA+8LC0fQqnvOAIE5Spz2c= X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:203:375::b9; envelope-from=jm@pub.pink; helo=out-185.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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279936 Archived-At: Tags: patch lua-ts-mode supports aligning table 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 patch fixes that so the initial indentation is correct from the beginn= ing: local t =3D { | }