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: Wed, 07 Dec 2022 15:44:17 +0200 Message-ID: <83sfhr49ce.fsf@gnu.org> References: <5B538888-E454-4F75-B3B8-AB20E10B3E89@gmail.com> <83o7sniokt.fsf@gnu.org> <56840149-5EB9-4C22-841F-45F410BFC885@thornhill.no> <83edtjimyo.fsf@gnu.org> <875yet975l.fsf@thornhill.no> <87y1rp7dw2.fsf@thornhill.no> <87o7sjcpr4.fsf@thornhill.no> <83359vbavi.fsf@gnu.org> <87pmcvzhjy.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16684"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59662@debbugs.gnu.org, casouri@gmail.com, mardani29@yahoo.es To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 07 14:45:12 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 1p2ujX-00043P-Ck for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Dec 2022 14:45:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2ujP-00063u-US; Wed, 07 Dec 2022 08:45:03 -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 1p2ujO-00063X-O5 for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:45:02 -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 1p2ujO-0002EP-Ek for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p2ujO-00010q-AV for bug-gnu-emacs@gnu.org; Wed, 07 Dec 2022 08:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Dec 2022 13:45:02 +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 X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 59662@debbugs.gnu.org, casouri@gmail.com, mardani29@yahoo.es Original-Received: via spool by 59662-submit@debbugs.gnu.org id=B59662.16704206873857 (code B ref 59662); Wed, 07 Dec 2022 13:45:02 +0000 Original-Received: (at 59662) by debbugs.gnu.org; 7 Dec 2022 13:44:47 +0000 Original-Received: from localhost ([127.0.0.1]:50449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2uj9-000109-0b for submit@debbugs.gnu.org; Wed, 07 Dec 2022 08:44:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p2uj7-0000zo-JE for 59662@debbugs.gnu.org; Wed, 07 Dec 2022 08:44:45 -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 1p2uj1-0002AY-Vy; Wed, 07 Dec 2022 08:44:40 -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=0yMweUzeQyxNytwtXbW3r8+svrTDSW1xmhBnwYKldxg=; b=Q53ijVZIJaTv qqRKrVYca3n5H+3OJGUM8+uuxl5DdFdnNU3mhQIibOPjhXWC04HPj3fCEvonpZ3E6IaDNSrBhUwNu ZQWuIIpK6aoFhu+5G2UJlFiNUsdmg9SAnve/MBYrllFw/dTO3G/G3nPNWDmPRnhrSjowO+2NGSe+5 yFSloF3J0L9JYTCAAknifUfB1kJuYfHE1ZWSF44OZtiduiI3QminOwKYLhkmy/ZV/FxCEdshJ2DqN GQKqHQLY14vt6VL2OeegjI6CO9d6D67rP/JVxolpd8Il/uJBiMCiDOF7AF8/9gP/BgVHnTRbXc+aX aMw9Gz4CYHcqDhmaxihsgQ==; 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 1p2uiv-0001Hc-8Q; Wed, 07 Dec 2022 08:44:39 -0500 In-Reply-To: <87pmcvzhjy.fsf@thornhill.no> (message from Theodor Thornhill on Wed, 07 Dec 2022 10:31:13 +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:250190 Archived-At: > From: Theodor Thornhill > Cc: mardani29@yahoo.es, bug-gnu-emacs@gnu.org, casouri@gmail.com, > 59662@debbugs.gnu.org > Date: Wed, 07 Dec 2022 10:31:13 +0100 > > > IMO, it is better not to set the mark, indeed. > > Agreed, see attached patch. What do you think, Yuan and Eli? > > Should we expose the internal helper I used, or maybe this function > could just as well live in treesit.c? If it is expected to be useful outside treesit.el, I think it should become public.