From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#68824: treesitter support for outline-minor-mode Date: Fri, 02 Feb 2024 09:53:27 +0200 Organization: LINKOV.NET Message-ID: <86r0hv4809.fsf@mail.linkov.net> 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> 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="6815"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , 68824@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 02 08:59:12 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 1rVoS8-0001di-K1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Feb 2024 08:59:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVoRo-0000Lm-QV; Fri, 02 Feb 2024 02:58:52 -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 1rVoRn-0000L5-Cb for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:58:51 -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 1rVoRn-0000ZX-4W for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:58:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVoRx-0005aQ-MR for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 07:59:01 +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.170686070421409 (code B ref 68824); Fri, 02 Feb 2024 07:59:01 +0000 Original-Received: (at 68824) by debbugs.gnu.org; 2 Feb 2024 07:58:24 +0000 Original-Received: from localhost ([127.0.0.1]:43640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVoRL-0005ZF-Md for submit@debbugs.gnu.org; Fri, 02 Feb 2024 02:58:23 -0500 Original-Received: from relay8-d.mail.gandi.net ([2001:4b98:dc4:8::228]:46275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVoRG-0005Yq-Pn for 68824@debbugs.gnu.org; Fri, 02 Feb 2024 02:58:22 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id A566E1BF207; Fri, 2 Feb 2024 07:58:01 +0000 (UTC) In-Reply-To: <3D859057-3DE9-470A-80A4-E0F734A0A622@gmail.com> (Yuan Fu's message of "Thu, 1 Feb 2024 16:34:47 -0800") X-GND-Sasl: juri@linkov.net 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:279335 Archived-At: > 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. I don't understand yet how this would change the traversal order from post-order to pre-order. But I will try to use treesit-beginning-of-thing and treesit--navigate-thing Thanks for suggestion. Eli, currently I don't need documentation since I will check source code anyway. But I agree this should documented at some time.