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#73404: 30.0.50; [forward/kill/etc]-sexp commands do not behave as expected in tree-sitter modes Date: Mon, 30 Dec 2024 15:40:22 +0200 Message-ID: <864j2lp9vd.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28264"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mickey@masteringemacs.org, casouri@gmail.com, theo@thornhill.no, 73404@debbugs.gnu.org, monnier@iro.umontreal.ca To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 14:41:31 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 1tSG1S-0007Ac-Tc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 14:41:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSG1H-0005kk-Rx; Mon, 30 Dec 2024 08:41:21 -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 1tSG11-0005k1-Ag for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 08:41:03 -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 1tSG10-0005Hl-Pm for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 08:41:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=5OgL+0EFlT//zNyDd2NHz9xBVgvUpC4NUo7sap4J0JY=; b=hIex3QKPjy12KlE57XOMtIcnP+ekiBBhN7VYe3Ve5o9plUIaDQANNC4XICNpf6eR0/wiXDJfeONC2FZit9jYQWYmpXJG6T5IgXNSQ5N8YFxPiov/9r3FBWBhaDGZRsEA/YYu5DtHr4Cl5hUnZ9lzijvPXzCu/bSOKsQoL4je1g9ps6H9Lqyzb717W5GiXbCvFmz6h2aTgy4BYt+7cdroe8+W7JBm5CKE9ziqLqAdNgnWvPZOyilnEjeBHAWmwFrefitdzRv/nYxHe+rYTNfWvYnDkJaFr+O3ds/X0k5EigUdO9K5SG9i59VKQK6AUIa4G6YCfGY8Q8Dy24sGT7xj9Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSG10-000262-EA for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 08:41: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: Mon, 30 Dec 2024 13:41: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.17355660388007 (code B ref 73404); Mon, 30 Dec 2024 13:41:02 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 30 Dec 2024 13:40:38 +0000 Original-Received: from localhost ([127.0.0.1]:57823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSG0b-000254-Ol for submit@debbugs.gnu.org; Mon, 30 Dec 2024 08:40:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSG0Y-00024m-BY for 73404@debbugs.gnu.org; Mon, 30 Dec 2024 08:40:35 -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 1tSG0P-0005GV-Te; Mon, 30 Dec 2024 08:40:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5OgL+0EFlT//zNyDd2NHz9xBVgvUpC4NUo7sap4J0JY=; b=IabY+M0iTu4T Rz8KzqNRtXMvpzYnBecdNtc12j4VrBu4yoctyN1L01A+3Eak+aprxkXcntyYaaOicIb+92coZ8Z/i EOs1NrjfDZ9VnzwVSszSeEz1CGO2YOQ5qDCi72fxgb7JkkqyyOQwHuVoLNzrx80p3uTwNeC4t6Mzl aG4DFOXxQs3DllYe1t2TU5UmrUl3kmzfwi7zuM+f8IVXnUxUbE/zrVzQwzN5v/O+EjmSPnunli/py k1krKFF8ogwDSpUYknctv2aI5+AFPjTsu3NSNeaE7xAAdFl8Bh9XWsWTDZYFyE1oSv0ESsOI1Y96F GvsURED9c7ySFxKh5aM6hQ==; In-Reply-To: <8734i5fyv1.fsf@mail.linkov.net> (message from Juri Linkov on Mon, 30 Dec 2024 09:15:42 +0200) 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:297999 Archived-At: > From: Juri Linkov > Cc: Theodor Thornhill , Eli Zaretskii , > Mickey Petersen , 73404@debbugs.gnu.org, > Stefan Monnier > Date: Mon, 30 Dec 2024 09:15:42 +0200 > > 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. What are the possible kinds of "groups", which are not balanced parenthetical expressions? Can you show a more-or-less exhaustive list of them? With that, we could try looking for a proper terminology. Thanks.