From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu 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, 26 Sep 2024 22:43:06 -0700 Message-ID: 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> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mickey Petersen , 73404@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 27 07:44:50 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 1su3mc-000AYr-MP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Sep 2024 07:44:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1su3mN-0001d4-UC; Fri, 27 Sep 2024 01:44:35 -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 1su3mM-0001co-6f for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2024 01:44:34 -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 1su3mL-0000AT-Si for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2024 01:44:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=4FDo8tsHntPZVrDxLpyN3MgQeMknqG+toQWLkoWJwZE=; b=bM/yX6HITLrmIcdOfrXwSNNOAzaf5khU2jnccFNf4SEVP24Nn83QmeKiy2SXYy2ZvLl91keDLbwxmfftLr5r+7Bu8cugKAl7iRV9uu1S4k0YsQJrioNTetQJR3PqtmvboLiEsYYlKGD9t6VVhKh0UfkmX3pSRNwkLq5hseaiY9I4DhFSGc4na+50++DGsk0Oqkx6Pmv3h56oMr+bYcMX6IVij+rMzpscsGAdrJWCzt67mcNMc8XGwKdewwHp85qwi0D33XRl29xgSN2mhVDBKYjfBjASW4Rw9TLtNryee1JaUX58VXAgLMIi8cR5rIoVGk/wiDmA+e1p6Ay4UFNCqQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1su3mn-0006bN-Oe for bug-gnu-emacs@gnu.org; Fri, 27 Sep 2024 01:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Sep 2024 05:45:01 +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.172741589625347 (code B ref 73404); Fri, 27 Sep 2024 05:45:01 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 27 Sep 2024 05:44:56 +0000 Original-Received: from localhost ([127.0.0.1]:45239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1su3mh-0006ak-H0 for submit@debbugs.gnu.org; Fri, 27 Sep 2024 01:44:55 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:53549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1su3me-0006aU-Q7 for 73404@debbugs.gnu.org; Fri, 27 Sep 2024 01:44:54 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-206bd1c6ccdso16212675ad.3 for <73404@debbugs.gnu.org>; Thu, 26 Sep 2024 22:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727415798; x=1728020598; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4FDo8tsHntPZVrDxLpyN3MgQeMknqG+toQWLkoWJwZE=; b=KzzEaAYFOWwXMU5eF7TS5lDqkgDDHGtHBIbZNfAdkk6Lj2Tbyk2pwf77tbb499Gfcw 0gWWo8M+a+ocynz+K+/Pw/8XfRr3ceVGZKiByUc9p0rSPcE8WwLmGUcte1MEjNB0VFUg b9cclqldlu/EUpOVyNLZN8lAsPCvx8wnRddoyHzkuAlHrkwqkgeX1kpGnK4PyK/wO+s3 6fzN72dzPrfjr1vdlhttsSvDtYgFjOlh8cWBoUIrgxcYsz+jk9EB3DHX280z7/ILLieR FySeDkcTldrYxf8QudkPW9lQ9dS8zec1wIwFG2D6WFlW/SGU+pHjuzAbGSEEQkuiYhxt aBMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727415798; x=1728020598; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4FDo8tsHntPZVrDxLpyN3MgQeMknqG+toQWLkoWJwZE=; b=jwvABOAiI6Q+ACZ7odVhscWbTafNVtSI4P5ylYmcJc0075/nPTpXaeJVUg4Pk4QkJp BKmBSNg3WZjJfm/qqD+IH4uGYj+v/aSnx01Q4QLyEeAMLZBzmnTD5GV3JxHCIJWwADry WuxR4ceo1a3Z/n7si6R165qowp6CmcbR4pQQzGuSVMV7VLxOxg4nNV+U0MnxOG7lSSEv At8I/YwMhobLxcdDDN7lxQcBNQ8oEzqldSyouRdYWb1i9ihnpau+MzhvqbBbyR6XYCP9 d90hNyrWkKFCYS+p+IxIlBsr2iHco9JamXTjldGPMeWOO1e+c2upZgL7qOhkugl9Nmqj YqAQ== X-Forwarded-Encrypted: i=1; AJvYcCVWPGsojViE1AFdFCfYo2KYU8f02VBdP5PS22j6JXCE9jdQvF2WqFpBYgeLi1li1Uc6Kj19Ww==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxnkdXkf7ww+kFg8t3CMffE9gGg1rH5cNsJtuC31uMD9EWaEIpT UMD352eP6HAeH5UnBmfEZYwcUznfchL6KXyub/57SwX1K/irpd2i X-Google-Smtp-Source: AGHT+IECFmqakNiD2bLZAh54wlsSBM5oQF1i/czkrCWPi6foOCmcEpw0VqDvFKX6k/x5MJVgX5pe4Q== X-Received: by 2002:a17:902:e751:b0:207:82c1:44b8 with SMTP id d9443c01a7336-20b37b912c1mr35629195ad.56.1727415798425; Thu, 26 Sep 2024 22:43:18 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:880f:a981:5530:3a90]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20b37e5183dsm6620925ad.256.2024.09.26.22.43.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2024 22:43:17 -0700 (PDT) In-Reply-To: <86frpma06f.fsf@gnu.org> X-Mailer: Apple Mail (2.3776.700.51) 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:292489 Archived-At: > On Sep 26, 2024, at 8:45=E2=80=AFAM, Eli Zaretskii = wrote: >=20 >> From: Mickey Petersen >> Cc: casouri@gmail.com, 73404@debbugs.gnu.org >> Date: Thu, 26 Sep 2024 16:21:33 +0100 >>=20 >>> I think the ability to move by parse sub-trees is also very useful. >>>=20 >>=20 >> Agreed. What matters is whether the crop of new sexp commands, such = as they >> are, perform satisfactorily. Note that you can affect the behavior of tree-sitter sexp movement by = defining the sexp =E2=80=9Cthing=E2=80=9D in treesit-thing-settings. = Js-ts-mode defines one (js--treesit-sexp-nodes) and it only consider = some nodes as sexp. You might be able to tweak the sexp movement to your = liking by changing it, or directly modifying the definition for `sexp=E2=80= =99 in treesit-thing-settings. >>=20 >> Do you think the examples I listed in the original bug report match >> your expectations? If so, then it is probably OK to close the bug = report. >=20 > Yes, I do, but let's wait for others to chime in if they have opinions > on this.