From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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: Tue, 07 Jan 2025 14:19:08 -0500 Message-ID: References: <87plox4mtp.fsf@masteringemacs.org> <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> <8734i5fyv1.fsf@mail.linkov.net> <875xmumpzv.fsf@mail.linkov.net> <86ikqubdsd.fsf@gnu.org> <87wmf9912l.fsf@mail.linkov.net> <87a5c5v5z8.fsf@thornhill.no> <877c79qhcs.fsf@mail.linkov.net> <87sepxt4yl.fsf@thornhill.no> <87o70k9y2e.fsf@mail.linkov.net> <87plkzyh60.fsf@mail.linkov.net> <87bjwiijnv.fsf@mail.linkov.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2037"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: mickey@masteringemacs.org, Eli Zaretskii , Theodor Thornhill , casouri@gmail.com, 73404@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 07 20:20:15 2025 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 1tVF7d-0000JW-Fv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jan 2025 20:20:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVF7V-0002ZU-Tw; Tue, 07 Jan 2025 14:20:06 -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 1tVF7S-0002ZH-MC for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 14:20:02 -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 1tVF7S-0006u4-DN for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 14:20:02 -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=66fxFtxG6E7H9x5wwGMGMZKNDJYwP+TpqlD9Lyj2uIg=; b=lI/NieauujtI2XpGNjQeRemEbY6bKSMpZa8JuldyMxRLqAwpbKtEHqOMpC0Ce96EdrGhfVyRvM8jQzaR493HY7UsooLvYnnZisMWH2RTfOGJniZ4WN5aTaD00o0RLL9xsNQhSLnOM8zj3srdK99bwe4SnL3Z1xBJvXRsArwzmmEaKyxKAvlxBadkqX4sf5lM8Qv8VQKhmFIcsF3RioMXiQHZSTW3+d5Nu0wJR17fxAsLLWWTU51dCxtekzbNsIN4KaLArmaxzjXsHkdNj++A+CZ2b84AtsFRHcB+scnhUlo1jwLYVeJr9UuWS263ga+75BsgsUKkjPkKHEYkSvcgEQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVF7R-0000pU-Tb for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 14:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2025 19:20: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.17362775593083 (code B ref 73404); Tue, 07 Jan 2025 19:20:01 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 7 Jan 2025 19:19:19 +0000 Original-Received: from localhost ([127.0.0.1]:44708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVF6l-0000nc-CF for submit@debbugs.gnu.org; Tue, 07 Jan 2025 14:19:19 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:26108) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVF6j-0000nH-NK for 73404@debbugs.gnu.org; Tue, 07 Jan 2025 14:19:18 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8D1E380AA7; Tue, 7 Jan 2025 14:19:11 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1736277550; bh=34ovqv7I7h9gNL+3IWaMacjkO0YYKdAq2WnnHtg6Pto=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oVtPE1UgcLW0cmC15rTmdcg6bQ+5gqQXLzX0jxgDdBra7FTW5cXrAqWuKt1bavuaj MP1BOQIi1FWrUjkVGZCaG5TUPj7kuG/WX7+MkN1OoT2qBWwftUozheRecRrEZOOwVV QRpDCsl6MLx20sP+oF/AvMNjPKd34sfPKMcPa2aa+Y4mIfj0rwvPTzygbkkwZvFUbA 3TMXmtrD5PLn79EF3sAug10a5wcRPFnY1+AlGasahxXq1Q7LyxSJT0jEd/H6iQyJ+5 HUEclPFx4Dls1y3z4Sv776wmU5k6wBqXVtzCqc+V2LZUdwJhYjPstICaX8BGVUowsZ FA4/OxiZiiTNA== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B798C80911; Tue, 7 Jan 2025 14:19:10 -0500 (EST) Original-Received: from pastel (104-195-232-86.cpe.teksavvy.com [104.195.232.86]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 50695120642; Tue, 7 Jan 2025 14:19:10 -0500 (EST) In-Reply-To: <87bjwiijnv.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 07 Jan 2025 20:05:40 +0200") 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:298743 Archived-At: > I had an idea to keep the currently navigated level in an > internal variable, so `C-M-n C-M-p` will always return back. > But this doesn't look reliable. Not only it's not reliable, but it's not necessarily the behavior we want. After all, if you want to go back, you can say so explicitly by remembering the original position jumping back to it instead of hoping against all evidence that the navigation operations are mutual inverses. Stefan