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: Thu, 12 Dec 2024 21:13:07 +0200 Message-ID: <865xnozpdo.fsf@gnu.org> References: <87plox4mtp.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> <5192B278-66C0-48AE-B881-E57CCBB6B501@gmail.com> <87frmtbc9z.fsf@mail.linkov.net> <86bjxh1h86.fsf@gnu.org> <87y10l8h6k.fsf@mail.linkov.net> <87ldwl8g60.fsf@mail.linkov.net> <87wmg53rdj.fsf@mail.linkov.net> <87a5d0n651.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9031"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mickey@masteringemacs.org, casouri@gmail.com, theo@thornhill.no, monnier@iro.umontreal.ca, 73404@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 12 20:20:39 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 1tLojn-0002A6-0F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Dec 2024 20:20:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLojG-0006tV-CC; Thu, 12 Dec 2024 14:20:06 -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 1tLojD-0006tF-Py for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 14:20:04 -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 1tLojC-0004P9-H9 for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 14:20:03 -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=PMSfyoQmLyXPqCGELZZRod4ZVsqLF7jtxCnqpva+WFI=; b=ha4rDU2ZY1HN7fGkqzi5u3XcFVKujizETtR8uon99aBtbhSAfSD6aKtdawZY3C/0qLFJsD46tDy7g7FF+VJMTOzVt4sg9y+nBZINMFF9xNI/21eY8enodsl3Otixx3vh0G8MQ3YkEQkfMrhufUASYbyKA4Rt5jWmbvTF62KGEaWQfgU05Tcd5aGDDXvhLxDRnipl2Zo2e6KHKrEF27iGDXhtrIQZBOkxbYkJ1U5YjLMF7zlrTWtlYd2SPBeEHTuHVv3Cwqk1Rb4/0nLcONGsiI/UVpjCGhhEfLC+wd/mY7fkZYda2ZyM8hXTzA9dHz398GJ37PEOrSStc9cEOE7kYA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLoeM-0003P3-DM for bug-gnu-emacs@gnu.org; Thu, 12 Dec 2024 14:15: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: Thu, 12 Dec 2024 19:15: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.173403084312963 (code B ref 73404); Thu, 12 Dec 2024 19:15:02 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 12 Dec 2024 19:14:03 +0000 Original-Received: from localhost ([127.0.0.1]:40345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLodO-0003My-AI for submit@debbugs.gnu.org; Thu, 12 Dec 2024 14:14:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLodK-0003MG-8o for 73404@debbugs.gnu.org; Thu, 12 Dec 2024 14:14:00 -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 1tLodC-00025O-Md; Thu, 12 Dec 2024 14:13:50 -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=PMSfyoQmLyXPqCGELZZRod4ZVsqLF7jtxCnqpva+WFI=; b=sYD+hFeVpX// DCSUMy7dRczt0A8wqKlR5r4fOi3FDsH6Ep83DUZtgZmbSORLtsYyDdnDX0YJIOB3I+80kY1wN2pOv VpUayrmewhadi3ND+sCk6b4IkoA1FVtsoh9WKTn7QAZBaiQiIVWgPVO8EzMHKBqLTmrA5wLWxMEus aXWCsje33zuyq48Knb7rnwMJ4p9GTQptCSo+5AoO5qTbIjIN9a9Rg8XNzF1JjECl9xirECaDR5jFk fn7eclHWYwv7AxLGwWKtK6F9k3kMcyatYNbqPk2HG4V3bjnDpU3UzLWn4+tOYidB+PKxtovh7OsYq K90ZapnUlOJnDnNf5EH2+g==; In-Reply-To: <87a5d0n651.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 12 Dec 2024 19:49:30 +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:296943 Archived-At: > From: Juri Linkov > Cc: theo@thornhill.no, casouri@gmail.com, mickey@masteringemacs.org, > monnier@iro.umontreal.ca, 73404@debbugs.gnu.org > Date: Thu, 12 Dec 2024 19:49:30 +0200 > > > Another variant is to leave treesit-forward-sexp as is, > > and create a new function treesit-forward-sexp-with-list > > that uses the 'list' thing. > > This patch keep the current function treesit-forward-sexp, > and creates a new function treesit-forward-sexp-list > that uses the 'sexp-list' thing to navigate lists while > using forward-sexp-default-function to navigate atoms: Introducing a new command raises the question how should users navigate using the two. Will C-M- invoke forward-sexp or the new command (or maybe one or the other in some dwin-ish way)? What are the problems with teaching treesit-forward-sexp do what the new command does? IOW, why do we need a new command?