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#73404: 30.0.50; [forward/kill/etc]-sexp commands do not behave as expected in tree-sitter modes Date: Mon, 30 Dec 2024 20:54:39 +0200 Organization: LINKOV.NET Message-ID: <87seq52e8g.fsf@mail.linkov.net> References: <87plox4mtp.fsf@masteringemacs.org> <87frpm20t7.fsf@masteringemacs.org> <8634lmbs8t.fsf@gnu.org> <87bk0a1u0o.fsf@masteringemacs.org> <86tte2a5o3.fsf@gnu.org> <877cay1lqt.fsf@masteringemacs.org> <86frpma06f.fsf@gnu.org> <86ikueiekp.fsf@mail.linkov.net> <86ed4zg1cc.fsf@mail.linkov.net> <87zflac68t.fsf@mail.linkov.net> <87jzcdlxdp.fsf@mail.linkov.net> <87o71jocgs.fsf@mail.linkov.net> <87wmfwqg7e.fsf@mail.linkov.net> <8734i5fyv1.fsf@mail.linkov.net> <864j2lp9vd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1615"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: mickey@masteringemacs.org, casouri@gmail.com, theo@thornhill.no, 73404@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 20:05:20 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 1tSL4p-0000CG-Ll for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 20:05:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSL4k-0005ad-T0; Mon, 30 Dec 2024 14:05: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 1tSL4a-0005RQ-JX for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 14:05:05 -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 1tSL4Z-0007yI-Jl for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 14:05:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Y2UzCUCJfCm6EmVs8rbXFq6z6MkG6NZ6k11X7VrI8Ss=; b=ecrRgPehRSEUrJgLZS7EztVMMIc6DbQWByvYGxxvYLK34vcTcQ48DR9uxQiYlg0REdFCGOSP34umeBoItPXuUex9OA1BBLMmU1pJGt/0TkMxTnjiH3A2fWFIa22LNo9PobGYvk7OK5xISSncVrWZF84rEH+luOKHjDXOHGXYK09HO4IVmweBHcnnYA9WQGD6kQxUWKGCJtaXoBTgWJ/NtehJq/bRHbQbPTktls8nMNvZ6kiKhkJDM3q22IGAYoOjLSD+ud7RPJEpXTRXPIewTfyguDBTykZpFwwFbYaG8AqFrZCJ6DWhfwgPTlb7YElaARSHMsM1S3Rvc9wIteO1uQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSL4Y-0001iA-Bz for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 14:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2024 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73404 X-GNU-PR-Package: emacs Original-Received: via spool by 73404-submit@debbugs.gnu.org id=B73404.17355854756506 (code B ref 73404); Mon, 30 Dec 2024 19:05:02 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 30 Dec 2024 19:04:35 +0000 Original-Received: from localhost ([127.0.0.1]:59988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSL46-0001go-Iz for submit@debbugs.gnu.org; Mon, 30 Dec 2024 14:04:34 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:57983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSL40-0001gP-BU for 73404@debbugs.gnu.org; Mon, 30 Dec 2024 14:04:33 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id A17E5FF802; Mon, 30 Dec 2024 19:04:17 +0000 (UTC) In-Reply-To: <864j2lp9vd.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Dec 2024 15:40:22 +0200") 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:298020 Archived-At: >> BTW, my initial intention was to add the thing 'list'. >> But then I discovered that (treesit-thing-next (point) 'list) >> uses the function 'list' instead of the thing 'list'. >> >> However, the current 'sexp-list' as a two-word composite is too ugly. >> Now I found a better replacement: 'group'. This word is already used >> in lisp.el such as in the docstring of 'forward-list': >> >> "Move forward across one balanced group of parentheses." >> >> And the error messages: "No next group". > > "Group" is too abstract and too removed from the actual thing. I'm > quite sure we can do better. The proper name is "list". Since it can't be used directly, the second best variant is "group". > What are the possible kinds of "groups", which are not balanced > parenthetical expressions? All groups should be balanced. Even in languages that don't use parens and brackets, e.g. "def" and "end" are balanced while these are not parenthetical expressions. > Can you show a more-or-less exhaustive list of them? A exhaustive list is not yet finished. But basically most groups are parenthetical expressions while some don't use parens.