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:05:52 +0200 Message-ID: <864jerz6pb.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> 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="26214"; 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:07:14 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 1rVndq-0006eW-Ah for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Feb 2024 08:07:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVndY-0002dq-QP; Fri, 02 Feb 2024 02:06:56 -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 1rVndU-0002df-NH for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:06: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 1rVndU-000204-Ez for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:06:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVnde-00011L-HG for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2024 02:07: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:07: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.17068575773840 (code B ref 68824); Fri, 02 Feb 2024 07:07:02 +0000 Original-Received: (at 68824) by debbugs.gnu.org; 2 Feb 2024 07:06:17 +0000 Original-Received: from localhost ([127.0.0.1]:43493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVncu-0000zs-Qn for submit@debbugs.gnu.org; Fri, 02 Feb 2024 02:06:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVncp-0000zT-NY for 68824@debbugs.gnu.org; Fri, 02 Feb 2024 02:06:15 -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 1rVncZ-0001qJ-B6; Fri, 02 Feb 2024 02:05:55 -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=Y4JzwIzkIC1ohsKmsSSgiRtTemWQDvHanHJPI05n/Us=; b=BLtzI+WNKn54l+UUVtRO StgQCfGRQShD18m3+LclmggUU05KZ6aOzbiHDF4XfRQ0kFx0xYLLXzhgNH9J+YS4h1Po9AjYf9I58 dEEmUhzQ6aYE89m+lgxSV1bdqReG1l+pg2O1v9NmEuI41C2G85Qc0SePL0BrpP7d+Ql5HlvUhso2z YNjeuiv1oGxGYJpGd4mT+SW51JyTzckM6UmnWDd11dRw1Ft1Un/kxO6AXTUZUiKelVGdGJ3HV3w5H z/ck6gD2zRG4o84tUfYQftfJ6tsvSaZU94DCwB8j8GziqqsSiACrW/okHMI1HjCoWW4VYbVZchLXa VAvdBMHwRT1cWA==; In-Reply-To: <3D859057-3DE9-470A-80A4-E0F734A0A622@gmail.com> (message from Yuan Fu on Thu, 1 Feb 2024 16:34:47 -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:279319 Archived-At: > 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.