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#68824: treesitter support for outline-minor-mode Date: Fri, 02 Feb 2024 09:34:36 +0200 Message-ID: <86wmrnxqsz.fsf@gnu.org> References: <86le8667u7.fsf@mail.linkov.net> <865xza39vp.fsf@gnu.org> <86y1c6q7oh.fsf@mail.linkov.net> <868r44ryzb.fsf@mail.linkov.net> <3D859057-3DE9-470A-80A4-E0F734A0A622@gmail.com> <864jerz6pb.fsf@gnu.org> <695857EA-4FC0-4D5E-9DA0-43C2C70DBA53@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8671"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68824@debbugs.gnu.org, juri@linkov.net To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 02 08:35:25 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 1rVo55-0001zO-Dz for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Feb 2024 08:35:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVo4k-0003bi-Jv; Fri, 02 Feb 2024 02:35:02 -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 1rVo4a-0003ZQ-Hx for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:34:52 -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 1rVo4a-0007Km-A1 for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:34:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVo4k-00020G-Ra for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:35: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: Fri, 02 Feb 2024 07:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68824 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68824-submit@debbugs.gnu.org id=B68824.17068592977673 (code B ref 68824); Fri, 02 Feb 2024 07:35:02 +0000 Original-Received: (at 68824) by debbugs.gnu.org; 2 Feb 2024 07:34:57 +0000 Original-Received: from localhost ([127.0.0.1]:43569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVo4e-0001zg-MN for submit@debbugs.gnu.org; Fri, 02 Feb 2024 02:34:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVo4c-0001zR-Iv for 68824@debbugs.gnu.org; Fri, 02 Feb 2024 02:34:55 -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 1rVo4M-0007JO-CJ; Fri, 02 Feb 2024 02:34:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=a7lEFp3dch0jz37WF/8tctuUILgq93eydpwopDYXjsk=; b=QY4Mml5tLXuYbZDZ4hWv qLYP5F08DNVFkaTNaOpfj0+YbehAFv2cXCJKpanlKxXZRmPVxrencJm+IZGLg5vutp6JVO5rmj9Xk xvcpRgEPGadAS8am8YqdgbY+o1400dVZSiGSu9oFCro223M8Mc7oHMKhTB9Adv5ZPdm8Ye3xrZWH0 6iJGPNvvd0D2izTx30TqAad4qLcBbbTz7QsQcQp7sfDDEHqnImLHdpn9TSye6JoFfLJEEFKKwMr+V 7UQpI5fa/DK4ZftaT+yjZd/StB2dLyw/1cyLB/N3wEF2o7qSYpUXSOLVRgzAUv4+Yuln9ORA5rp2B 7fyrJfbiJfejDQ==; In-Reply-To: <695857EA-4FC0-4D5E-9DA0-43C2C70DBA53@gmail.com> (message from Yuan Fu on Thu, 1 Feb 2024 23:27:50 -0800) 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:279327 Archived-At: > From: Yuan Fu > Date: Thu, 1 Feb 2024 23:27:50 -0800 > Cc: Juri Linkov , > 68824@debbugs.gnu.org > > > > > On Feb 1, 2024, at 11:05 PM, Eli Zaretskii wrote: > > > >> Cc: 68824@debbugs.gnu.org > >> From: Yuan Fu > >> Date: Thu, 1 Feb 2024 16:34:47 -0800 > >> > >> Instead of using treesit-search-forward, can you use treesit-beginning-of-thing or treesit--navigate-thing to do what you want? They handle the “child before parent” problem for you, and handles some other edge cases. > > > > If the above helps Juri accomplish his goal, I think we should reflect > > that somehow in the ELisp manual, at least. I see that > > treesit-beginning-of-thing is not even documented in the ELisp manual, > > and treesit--navigate-thing is an internal function that is not > > supposed to be called from outside of treesit.el. > > > > Thanks. > > The whole “things” feature [1] is not documented right now, since I was experimenting with them. If we think it’s time we can make the functions public and document them. Personally I think we can wait for a bit longer. Doesn't the fact that you suggested to Juri to use that tell us it's time to make these facilities public?