From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59662: 29.0.50; [PATCH] Add treesit--indent-defun Date: Thu, 08 Dec 2022 13:38:16 +0200 Message-ID: <83fsdq2kif.fsf@gnu.org> References: <5B538888-E454-4F75-B3B8-AB20E10B3E89@gmail.com> <83o7sniokt.fsf@gnu.org> <4D5A1640-4F0F-4C21-8ED6-770B88A870EA@thornhill.no> <83r0xhdluq.fsf@gnu.org> <3e25eadb-3f2b-f92d-8b18-bf1daca91b64@yandex.ru> <83wn78cqz4.fsf@gnu.org> <4d605e69-7df9-6480-c1c5-dcb22abd3bde@yandex.ru> <83y1ri2wnj.fsf@gnu.org> <875yemz55b.fsf@thornhill.no> <83r0xa2tc4.fsf@gnu.org> <87zgbyxohf.fsf@thornhill.no> <83o7se2n89.fsf@gnu.org> <87tu269mox.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 59662@debbugs.gnu.org, casouri@gmail.com, monnier@iro.umontreal.ca, dgutov@yandex.ru To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 08 12:39:37 2022 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 1p3FFY-0006oh-W7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Dec 2022 12:39:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3FF4-0006c1-Ku; Thu, 08 Dec 2022 06:39:06 -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 1p3FF1-0006bg-PJ for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3FF0-0007qz-1l for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3FEz-0003Ig-IW for bug-gnu-emacs@gnu.org; Thu, 08 Dec 2022 06:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Dec 2022 11:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59662 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59662-submit@debbugs.gnu.org id=B59662.167049951512649 (code B ref 59662); Thu, 08 Dec 2022 11:39:01 +0000 Original-Received: (at 59662) by debbugs.gnu.org; 8 Dec 2022 11:38:35 +0000 Original-Received: from localhost ([127.0.0.1]:56247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3FEZ-0003Hv-5L for submit@debbugs.gnu.org; Thu, 08 Dec 2022 06:38:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3FEX-0003Hj-3x for 59662@debbugs.gnu.org; Thu, 08 Dec 2022 06:38:33 -0500 Original-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 1p3FEQ-0007ag-I8; Thu, 08 Dec 2022 06:38:26 -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=S6wl/MuS6TdF9Dhdz7EEDfP0gEJ5OZBaRPU5B1daoCE=; b=rufOM8Tz+HYL hUy5gXNFvX4Qgr8OzLG9sI8kHbeNEcZvDqw7VVZHiIBy7ItniAYWFoycMzJi/GB4T9giKSC+hqOUx NQrxxnIFDaaPInzSkS0R1nQxUfRNqSzr3NOQSJt8aj3cJ6LL6DmdVlnJde8iVYAuQZ6u39MSYhTgt H2rFYJS5N30/GccOdv72CXtu5kAynmPhR7CJZmTLxNJeT+I6/wk3bBUy9ZP50hboalVdcchIOBTBb 1sXdZ80bcCz11PTNiR4XP0pU7iMP1ev4tKsLyoVyr/Hv8cjKi0DHThyL8MCyJk8rMRU9AHN9JIelJ gzXVE++WoMsWl7hqtmSbNg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3FEP-0002FZ-Le; Thu, 08 Dec 2022 06:38:25 -0500 In-Reply-To: <87tu269mox.fsf@thornhill.no> (message from Theodor Thornhill on Thu, 08 Dec 2022 12:09:18 +0100) 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:250277 Archived-At: > From: Theodor Thornhill > Cc: dgutov@yandex.ru, monnier@iro.umontreal.ca, larsi@gnus.org, > 59662@debbugs.gnu.org, casouri@gmail.com > Date: Thu, 08 Dec 2022 12:09:18 +0100 > > What about this? I changed it to make a point that we should fill if > inside of a string or comment, and indent if inside a code block. We > one such variable for each type, or in both as suggested below. I'll defer to Dmitry on that. Thanks.