From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61374: 30.0.50; Wrong mark-sexp with tree-sitter Date: Thu, 09 Feb 2023 12:08:49 +0100 Message-ID: <87sfff9jum.fsf@thornhill.no> 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> <838rh7m7q8.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40015"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61374@debbugs.gnu.org, spacibba@aol.com, casouri@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 09 12:09:12 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 1pQ4nf-000AEm-9A for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Feb 2023 12:09:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ4nX-0000As-Tl; Thu, 09 Feb 2023 06:09:04 -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 1pQ4nW-00009a-8y for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 06:09: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 1pQ4nV-0006u4-W1 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 06:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQ4nV-00040G-SG for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 06:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Feb 2023 11:09: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.167594093515370 (code B ref 61374); Thu, 09 Feb 2023 11:09:01 +0000 Original-Received: (at 61374) by debbugs.gnu.org; 9 Feb 2023 11:08:55 +0000 Original-Received: from localhost ([127.0.0.1]:57698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ4nO-0003zp-TO for submit@debbugs.gnu.org; Thu, 09 Feb 2023 06:08:55 -0500 Original-Received: from out-210.mta1.migadu.com ([95.215.58.210]:13399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQ4nN-0003zh-5o for 61374@debbugs.gnu.org; Thu, 09 Feb 2023 06:08:54 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1675940931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=rK/qBBbkt9nc8Z3d6j5iRUso0Bu/oL3lI/QmygJnzB8=; b=pKzr7BXTF+YXOMFP7ojhP0QwBjzJZNd3wW7xuaqokRsB3ShHOyOg9IrMBZRGvTaQDGw+1S 2Ft+9Fbkd/nC7DyUwlxkbQj5tw73M9EHecM+Fm6UPR1JS8XO7wl971HdHf04GdfXKLPXHD mWtF9qI427vSRw9U+sLoItTmxsCV1MVpJ6izfHXr8rwgQcm2CYwv5CFL46OgRzuyAjt9Z6 E+vhEdGA7yq5R8UIpuOPaMMXR3UeNamoJN5VT/kGf4PZe+Sksyjy9A8qko20QXi0TIwKux rXF87yhCpHvcJjoGzbAPSGSeB1S8IILHuebetdOkkVyvARPpIJs/9b26zlIaeg== In-Reply-To: <838rh7m7q8.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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:255212 Archived-At: Eli Zaretskii writes: >> 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? > Yes, I think we should too. I'll look into it. > Or am I missing the point? Nope, don't think so! Theo