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, 01 Dec 2022 09:48:15 +0200 Message-ID: <83edtjimyo.fsf@gnu.org> References: <5B538888-E454-4F75-B3B8-AB20E10B3E89@gmail.com> <83o7sniokt.fsf@gnu.org> <56840149-5EB9-4C22-841F-45F410BFC885@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4327"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 59662@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 01 08:49: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 1p0eK8-0000uH-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Dec 2022 08:49:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0eJm-0006ZM-LR; Thu, 01 Dec 2022 02:49:14 -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 1p0eJc-0006YG-O4 for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 02:49:04 -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 1p0eJa-0006Xk-1E for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 02:49:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0eJZ-0005xv-Sx for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 02:49: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, 01 Dec 2022 07:49: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.166988093022920 (code B ref 59662); Thu, 01 Dec 2022 07:49:01 +0000 Original-Received: (at 59662) by debbugs.gnu.org; 1 Dec 2022 07:48:50 +0000 Original-Received: from localhost ([127.0.0.1]:38035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0eJN-0005xc-QQ for submit@debbugs.gnu.org; Thu, 01 Dec 2022 02:48:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0eJM-0005xW-IL for 59662@debbugs.gnu.org; Thu, 01 Dec 2022 02:48:49 -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 1p0eJH-0006VQ-B9; Thu, 01 Dec 2022 02:48:43 -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=ed9lmLTsg56CcMbhky2aR2KKC49mQuIIrKLR6vlIKa0=; b=SSt6djGg3YSP 3YevTHj3EX37Pg1SNXPBFicsISFob0K5zgGVC05pZQVB1X721NJc33CtGNMlEDJ8UkHyZxy2H9EFo zwbDzM3a/ucXL0IHWH6vAT4EyQtl4mEtXBG9ua2BADHBqxVKZeBx8TKuBxuhkpsVc4v4cmhE9Xmqa JI51eLYLBVgDHWmMvmWscS7fqlMeWasj7lzJIKdzgT4OI+O1uI+mJ0TsUHVVv8loA3q7jkHauWnfU JED6ydwhCtFpjtwqUNAZ0D+S2hqvTztrcQ/BEQAm3SPGT1FJf6TPzccXyCJDhICQquruI+2rxt60r RY0WjFuoYHrQMZEZjzAeOQ==; 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 1p0eJG-0005yn-J2; Thu, 01 Dec 2022 02:48:43 -0500 In-Reply-To: <56840149-5EB9-4C22-841F-45F410BFC885@thornhill.no> (message from Theodor Thornhill on Thu, 01 Dec 2022 08:22:45 +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:249606 Archived-At: > Date: Thu, 01 Dec 2022 08:22:45 +0100 > From: Theodor Thornhill > CC: 59662@debbugs.gnu.org, casouri@gmail.org > > >SGTM, but I'd begin by doing this only in c-ts-mode.el (and maybe also in > >csharp-ts-mode). After all, until now this functionality and the "C-c C-q" > >binding was only in CC Mode. (My original question about this was due to > >lack of enthusiasm to add the "C Indent" node of the Emacs manual text that > >explains this feature is only available in CC Mode, not in the tree-sitter > >based C/C++ modes.) > > So you'd like the change in lisp.el, but bound only in the modes you mention, or have something similar to the original patch in treesit, but still bound only to the same modes? Why in lisp.el? we are talking about a feature of C-like languages. The current binding of "C-c C-q" is in cc-cmds.el, so what I had in mind is to have its counterpart in c-ts-mode.el.