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#60555: 29.0.50; Some clarification is needed about "smaller" and "larger" Tree-sitter nodes Date: Wed, 04 Jan 2023 16:58:06 +0200 Message-ID: <83cz7uz6rl.fsf@gnu.org> References: 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="27918"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60555@debbugs.gnu.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 04 15:59:21 2023 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 1pD5Ee-00077r-H0 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Jan 2023 15:59:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pD5ES-0006uk-Gl; Wed, 04 Jan 2023 09:59:08 -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 1pD5EM-0006uB-QY for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:59:06 -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 1pD5EM-0001PI-IV for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pD5EM-0006WE-3F for bug-gnu-emacs@gnu.org; Wed, 04 Jan 2023 09:59: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, 04 Jan 2023 14:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60555 X-GNU-PR-Package: emacs Original-Received: via spool by 60555-submit@debbugs.gnu.org id=B60555.167284429325003 (code B ref 60555); Wed, 04 Jan 2023 14:59:02 +0000 Original-Received: (at 60555) by debbugs.gnu.org; 4 Jan 2023 14:58:13 +0000 Original-Received: from localhost ([127.0.0.1]:49323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD5DY-0006VA-Rs for submit@debbugs.gnu.org; Wed, 04 Jan 2023 09:58:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pD5DX-0006Ux-3O for 60555@debbugs.gnu.org; Wed, 04 Jan 2023 09:58:11 -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 1pD5DK-0001JH-DI; Wed, 04 Jan 2023 09:58:05 -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=FXfrKBEt5Z7f7MkzgdHu0eNJLZu6RnqzEdVKkG4tl6U=; b=q+I9fL0QxR1QtUrDvLbb Jc3f+jUtxBz3RuRuvp3BQ1sWXIaXL1a+SSlZpcv6dJKEt/yCg79T24wluRiTE0MkkuPF6bXseLWyh iOyFxIelpdqehMhw4ONn9prujpB//9LxucJvAl4yqRS4tZwr1+QEsaHoaYgNk6MHm1UoP+NDDKguB vSScNrEczDRWJGXunZ2EREqwa9Hm/G2tRskR98KEhve8cpPX5yK3T8RAbX0rHD+ELyF4Q7tJoddN6 +F80RAlCA/OdWKPHUJTC1dWQD1U7CqLv3OzRq0uyEe2U1S5oA3Bg1pyv7HwcQA5F2ZZUSd4zsrKPl gIZqkoOvQBXx5Q==; 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 1pD5DF-0005xG-G9; Wed, 04 Jan 2023 09:57:56 -0500 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:252488 Archived-At: > Date: Wed, 04 Jan 2023 15:29:14 +0100 > From: Daniel Martín via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > In the Elisp manual, under "37.3 Retrieving Nodes" there is this text: > > We talk about a node being “smaller” or “larger”, and “lower” or > “higher”. A smaller and lower node is lower in the syntax tree and > therefore spans a smaller portion of buffer text; a larger and higher > node is higher up in the syntax tree, it contains many smaller nodes as > its children, and therefore spans a larger portion of text. > > I think the concepts of nodes being "lower" and "higher" are more or > less clear, and the notation is similar to the one used in classic texts > about rooted trees. However, the concepts of "smaller" and "larger" are > not very clear to me. From the text, it seems that "lower" also means > "smaller", and "higher" always means "larger". Is that correct, or > "smaller" and "larger" are really orthogonal to "lower" and "higher"? They aren't orthogonal, AFAIU. The text actually says that "lower" necessarily also means "smaller".