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#61374: 30.0.50; Wrong mark-sexp with tree-sitter Date: Thu, 09 Feb 2023 12:52:15 +0200 Message-ID: <838rh7m7q8.fsf@gnu.org> References: <875ycbitav.fsf.ref@aol.com> <875ycbitav.fsf@aol.com> <835ycbnxyc.fsf@gnu.org> <871qmzb56k.fsf@thornhill.no> <83fsbfmd75.fsf@gnu.org> <87y1p79nvj.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37509"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61374@debbugs.gnu.org, spacibba@aol.com, casouri@gmail.com To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 11:53:22 2023 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 1pQ4YJ-0009a7-65 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 11:53:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ4Y3-000244-IG; Thu, 09 Feb 2023 05:53:03 -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 1pQ4Y2-00023w-4H for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 05:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQ4Y1-0004Ka-SG for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 05:53:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQ4Y1-0003aP-Oc for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 05:53:01 -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, 09 Feb 2023 10:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61374 X-GNU-PR-Package: emacs Original-Received: via spool by 61374-submit@debbugs.gnu.org id=B61374.167593994813744 (code B ref 61374); Thu, 09 Feb 2023 10:53:01 +0000 Original-Received: (at 61374) by debbugs.gnu.org; 9 Feb 2023 10:52:28 +0000 Original-Received: from localhost ([127.0.0.1]:57668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ4XU-0003Zb-Gn for submit@debbugs.gnu.org; Thu, 09 Feb 2023 05:52:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ4XS-0003ZP-62 for 61374@debbugs.gnu.org; Thu, 09 Feb 2023 05:52:27 -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 1pQ4XM-0004Gl-16; Thu, 09 Feb 2023 05:52:20 -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=9TP8KW1ihkDV4tJ621puB+yTgyiRh1SnJyQpqNi6kxA=; b=Y3FthrAvp+6Z s2OZe8pDigZEeS/WWiD8kmkzC6UKtTNkkHKDx93gaYCLcnP/P7KVyyZLrT4/yziMMqe9Bg7nwwP15 6+47HzS0hXhsVZ2L5j0U1AGwcOpYxMQa3j42e0OHveQQJ/yYiINoPhal6/vdQqSrYbeOuiRwh6mTt f/YFNYcLqjBP30QVaZIxMrGfWP/gbwv5Np0OzcoJUEv/mixYP88DGh+nxw/8+jhXrOmiS33iAaNLY VY3rbjNmftKyc4zYVfRmhFoKM6eCL4y2X+uDQAKRCtoKD9Tgl+0tURjixt99x7qCOeaGWGk1Tr3hE vh36ZtjCgrIUcAAZeqg//w==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQ4XL-00049v-4T; Thu, 09 Feb 2023 05:52:19 -0500 In-Reply-To: <87y1p79nvj.fsf@thornhill.no> (message from Theodor Thornhill on Thu, 09 Feb 2023 10:41:52 +0100) 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:255209 Archived-At: > From: Theodor Thornhill > Cc: spacibba@aol.com, casouri@gmail.com, 61374@debbugs.gnu.org > Date: Thu, 09 Feb 2023 10:41:52 +0100 > > > Can you show some examples that illustrate these issues? I'm not sure > > I follow your line of reasoning, and thus cannot understand the > > relevant considerations and decisions, and their expected effects on > > behavior. > > > > Thanks. > > > consider same code as in the first mail: > > { > vector myvar; > } > > > If point is before the first curly, C-M-f will move to after the semi. > > > if "compound_statement" is added to the regexps, it will move to after > the closing curly - all good. > > Now if point is at the c in 'vector', now we will also move to after the > closing curly, not the first space or after the semi. Sounds like the treesit sexp movement doesn't have any notion of the "level" of the sexp or something? IOW, it doesn't know about the "innermost" sexp at point? If so, can we teach treesit.el about that? Or am I missing the point?