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: Wed, 25 Dec 2024 20:01:37 +0200 Organization: LINKOV.NET Message-ID: <87y103wsji.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> <87ikr8hpdu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16396"; 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 Petersen , Yuan Fu , Theodor Thornhill , Eli Zaretskii , 73404@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 25 19:06:22 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 1tQVm2-00047H-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Dec 2024 19:06:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQVlm-0002Pc-6e; Wed, 25 Dec 2024 13:06:07 -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 1tQVlj-0002PA-Nx for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 13:06: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 1tQVlj-0003ca-AQ for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 13:06:03 -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=YpOuAuzT1Cf0rxf8NOqvpdhpZD+FK4MHa+Z9Z2bxCg8=; b=SXkqF3bac0R0yvBOjaeLc1LPaB/3xJ89PWXJZH+3dbSk1D7NeCJhXWW6LC1u9qmbuZekic5r4VtQj5j9cNjEcUDM8kJBwhoBqWMDfFWskA7RnFmbKrcHHPgBWQQpzjcIbEY9FJ4iMflBRJpMeOt9z9FocEwNzaNsVS5AHhAJj0A6FS1m0nijzGtoFPliDrMlV1xbAqBWupDzuEym+dZrMclJb1l/1eul0X2SQdfdCN6e/T6fW04zGvJa15pifHwEjj4OaSLfgH7mbcZemyZvxUFQj90LndLdOlnEdRF0jBE9dldK/PLwuReM0nb2zTlqSACN+lVYsEYinR0eZp6cKQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQVli-0000b7-7c for bug-gnu-emacs@gnu.org; Wed, 25 Dec 2024 13:06: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: Wed, 25 Dec 2024 18:06: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.17351499262251 (code B ref 73404); Wed, 25 Dec 2024 18:06:02 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 25 Dec 2024 18:05:26 +0000 Original-Received: from localhost ([127.0.0.1]:38756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQVl8-0000aE-IQ for submit@debbugs.gnu.org; Wed, 25 Dec 2024 13:05:26 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQVl6-0000Zy-BK for 73404@debbugs.gnu.org; Wed, 25 Dec 2024 13:05:24 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 84DCA60002; Wed, 25 Dec 2024 18:04:54 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Wed, 25 Dec 2024 12:19:25 -0500") 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:297736 Archived-At: >> Also I'm looking into allowing more list-navigation commands >> to be usable in ts-modes. E.g. instead of limiting list-navigation >> only to the current 'forward-sexp', another useful command is >> 'down-list'. > > Gentle reminder that `forward-sexp` is not a "list-navigation" function. > That would be `forward-list`. We very often use sexp commands and > functions to manipulate non-lists such as identifiers. Do you think it would be better to override low-level functions 'scan-lists' and 'scan-sexps' with new variables like 'scan-lists-function' and 'scan-sexps-function', instead of adding more variables for overriding top-level commands such as a new variable 'forward-list-function' and 'down-list-function', like the existing 'forward-sexp-function'?