From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mickey Petersen 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: Sat, 21 Sep 2024 06:06:58 +0100 Message-ID: <87plox4mtp.fsf@masteringemacs.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="9328"; mail-complaints-to="usenet@ciao.gmane.io" To: 73404@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 21 07:13:02 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 1srsQY-0002F8-Be for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Sep 2024 07:13:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srsQG-0003F4-T7; Sat, 21 Sep 2024 01:12:45 -0400 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 1srsQF-0003Ei-Qt for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 01:12:43 -0400 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 1srsQF-000812-BZ for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 01:12:43 -0400 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:From:To:Subject; bh=T0vgEIHGoXAcab5cFt8MLq1IM9EJg+63PQLzhzGblw0=; b=g8Xl4EeLlGEJKDJb5QJGXPkuiarFRE3j3v/epr4REopptHtvCjuFkHKSbZV3T8djUwfyBMV5V5isFRP7voKAOS3oX+sTv9fnV83ZmpHrGdFJLairYP0rJcprA07kmnVjCrgVSCMx6muAFn1VZ/O4tCtedL+xIGX61sX2mk5p54lsQe5VS6Pbkdoj1NFUUMI8r/RiLmmm3zqtaBtKuRldPXqJes0og+LUUo8tz8K6LhIpppWExOc56NZ6dZl/m4i6PT4gh0r80WvpolbNXGrLHcPQKlX2c+M70Nh7hPBOkKkqZnSEmi607XO2VjsYCowldYIU6DZ5UNBsrcMqsJ/TEw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srsQY-0005UT-29 for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 01:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Sep 2024 05:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73404 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.172689555121058 (code B ref -1); Sat, 21 Sep 2024 05:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2024 05:12:31 +0000 Original-Received: from localhost ([127.0.0.1]:36898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srsQ2-0005TZ-Kk for submit@debbugs.gnu.org; Sat, 21 Sep 2024 01:12:30 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srsQ0-0005TR-Q1 for submit@debbugs.gnu.org; Sat, 21 Sep 2024 01:12:29 -0400 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 1srsPg-0003DJ-F3 for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 01:12:08 -0400 Original-Received: from mail-uksouthazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c205::3] helo=LO2P265CU024.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srsPe-00080i-FC for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 01:12:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qLc/vyopDIwxSF+WARAirzTfjcgqWfDY+VhpHHj9LnN9sUtuKH7tRdoFQCM8slCmy1+O+//sNlktnzX8EDgCHPbdSvh0l9KES7/i6mImNd40XhJKj5Bth6mzhVCXHZ90skG0eYEf/8qt11peqX+gBsIbqt/ce17uTdDS7BwhR5wL009b+1BzEoVdUdcsVMMVjtoj6yeL2SGG9BQg+yEaTNzpGBsna+oTZiAQikYuVDw28dPlOVZAZZlhKVV+H785XfLypJZl1qZZW9Jr2u29s9K7ig6na4PxrrLrXmeQ7TiifbPlx5lU/JxDtbTo93824DTGW5mDM4F489GCbIAXDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=T0vgEIHGoXAcab5cFt8MLq1IM9EJg+63PQLzhzGblw0=; b=mrvHeeV7Na0ST/+XnzwhEsv+K/pCCwODJZbpzzgsc1gpshPrVYzfi+kiRJLIlJ2t6F4P8gFzW6QDVEMojPA5vVDHP4CYhTmcIHQ4Zx9xrd3VArEzcsKTpboygLTbyxcqCFklTJlKFb4P9cc0kbhqvYBjadKXiShX1ldKbxqH0Es5uo4nXl7UXxULnDt+eSKpsuaWOct//Kpjd3Lz5QBT9I+fc2RrWRXuLZhupVPvOdfmKFkbVvJcqChYaSypfIKmf7umXZaHeKmB6gMXhr4co8jUmJdt1T/8ATcl2Ou9sWmorVhN8macCixbVsVK0ok/oO02ggOHq/J3cVxYpXMuEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T0vgEIHGoXAcab5cFt8MLq1IM9EJg+63PQLzhzGblw0=; b=jBEW6b0/AoGM11nw5ysi5p0srmJ4+kVGWk0BxBx1AEkQziRVAZkSlTHIapCBa9yvvFlTPO2JcdfmVebT+ve2G0g1Zl1Nsa9BhbFQVBbTaIkJ2PNI5yw5yX9sgw9Kqiiy3el7/eCJ6T7oHVivX17YHqAnUmOT3JIF6wgc5VZ8VVo= Original-Received: from LO4P265CA0009.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ad::12) by CWLP265MB6705.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:1ec::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.23; Sat, 21 Sep 2024 05:07:02 +0000 Original-Received: from LO1PEPF000022FD.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2ad:cafe::be) by LO4P265CA0009.outlook.office365.com (2603:10a6:600:2ad::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.29 via Frontend Transport; Sat, 21 Sep 2024 05:07:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Original-Received: from semantical.co.uk (178.79.136.144) by LO1PEPF000022FD.mail.protection.outlook.com (10.167.240.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Sat, 21 Sep 2024 05:07:02 +0000 Original-Received: by semantical.co.uk (Postfix, from userid 5001) id 226ED114002; Sat, 21 Sep 2024 06:07:02 +0100 (BST) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LO1PEPF000022FD:EE_|CWLP265MB6705:EE_ X-MS-Office365-Filtering-Correlation-Id: c1923c0b-81c1-464b-e0e5-08dcd9fb3a9f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|61400799027|82310400026|376014|36860700013|14776008|79816003; X-Microsoft-Antispam-Message-Info: a81i49klccb3E445Kq6oG4ErA9wYL+px9ktk+3e7u468Uzpo1iuzMekwkC7doH34izRPfNB0BZzk9eW5hIy4T6IM/mpl7NvDfWKempsDfA8Yw0w0nBDlYV4by1LUxZPQpCf0Jqa8Tf8I8r3B4UqJZU4ToN77mg5T4RtdmxbHvCDEUxyiUFLnZDrHLjqJ3PIJuey4TtUiQTudSw46iMzJPNVXwEpvc91nhiCd0eQOCSAsu30nzs6Wz8lmvIyXLbPJ+kRDoFOokCIgQbZe31moD7+/rROgzZA2h7q0rJMWCg5kpQp6Fjh8fZvzrTzOD3olV5iLh9Azu6as95/fmvRpaqAnJYVVFMP0ZH8sdovDQpu+Ferg2RBxg8UdV9L9MmCM94ASdmqyaVocf9TiA/p17YiQU6pcaCH7cpUfvRHhk/qfOrs77BE3B+hWwiaTaU2vItv6/1dSiJCPFQ+tI3wHukcwNH9HSZbDEVxwfyuZL57DBfzPJIB1kGE/Ex2oxsoTAnx4rx1n4/Om8HKW0O8TwiOK30sYB1shPIATfHeNYYATxVGzIPadJ8FxGDu2oxXiEEDl/BlUZfATLV2jYUy73OUYs+dyS1ksx/PAGdAi3QE2yDSJ1x2f5lcg3xciAepXxS3kOzfEP2OuHJ+R0xUPrlmf1y4NSHg+5gt8HOvTUaKIX/o1g408OgmBt3bL1EDMEiy7H3Sf3ic/IZ7J0XYrjMStL3cUVv/GJgPRp3OEalf1Upr6pXhpnt7Ntjr+q /QCulweEaIctWzI6/B/mghJs+k93APnTs3j71KI9Ah4qRHC9YSMKTd9NXbFwJVPmcOQQVLMC49J1zsR/N2WC9ZI93hnemyztkC X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230040)(61400799027)(82310400026)(376014)(36860700013)(14776008)(79816003); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2024 05:07:02.2874 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1923c0b-81c1-464b-e0e5-08dcd9fb3a9f X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: LO1PEPF000022FD.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWLP265MB6705 Received-SPF: pass client-ip=2a01:111:f403:c205::3; envelope-from=mickey@masteringemacs.org; helo=LO2P265CU024.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:292146 Archived-At: Examples with javascript-mode. It holds for all modes i tested with a TS equivalent. Let -!- be the starting point and ^N be the subsequent position after a movement command. -!-export const add = (a, b) => a + b; Repeated `C-M-f' yields export const add = (a, b) => a + b; ^1 ^2 ^3 ^4 ^5 ^6 In other words, it works as it always has. Meanwhile, in `js-ts-mode': export const add = (a, b) => a + b; ^1 ^2 ^3 ^4 >From ^1 and back with `C-M-b' export const add-!- = (a, b) => a + b; export const add = (a, b) => a + b; ^1 At this point, `C-M-b' no longer goes back. It is stuck. Another example: -!-console.log("Addition result:", result1); With `C-M-f': console.log("Addition result:", result1); ^1 ^2 This affects every single -sexp function that uses either `forward-sexp-function' or `transpose-sexp-function' to do its job. Thanks.