From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov 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 20:05:40 +0200 Organization: LINKOV.NET Message-ID: <87bjwiijnv.fsf@mail.linkov.net> References: <87plox4mtp.fsf@masteringemacs.org> <86ikueiekp.fsf@mail.linkov.net> <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: mickey@masteringemacs.org, Eli Zaretskii , Theodor Thornhill , casouri@gmail.com, 73404@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 07 19:08:24 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 1tVE08-0007hJ-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Jan 2025 19:08:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVDzz-0005w2-Gp; Tue, 07 Jan 2025 13:08:17 -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 1tVDzm-0005ue-Rl for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 13:08:04 -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 1tVDzl-0007CT-QE for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 13:08: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=YyEpLiut6luOEWzuNstxclkoM3NpLtO4pqjBf7GYnwQ=; b=SMNHB3USBOtZcoNe17Eok4gy5XsRlmF0bqyF7daDb2rOZ3Jo+oHye5miwDZVZqdfxRJeJ+zu4jZUPmL6xabFx3Ax8/z2DuS3Jjr9A1K7H5S1eA8BrohdpGtTQxZi6A36OJlMwmis99YRZqpLF21n5a3kNF53imdX9x9MytRLI4uYqxcJnu9GRGNnIjv6LbV6Jii6B3RvMelA9hfi6oma+S2ZpIh9lZaqLN+XdUJ/7Gzavl9D422DJIWwkjUYRRR6S7xEfEO3ax53b/Ar7kOkX2yomGCufXTVnE0MDJlNoB1igmX6F69SdaPGaORKNLti44UuwCs8gzytYpma+4edyQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVDzl-00056K-KR for bug-gnu-emacs@gnu.org; Tue, 07 Jan 2025 13:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Jan 2025 18:08: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.173627324819528 (code B ref 73404); Tue, 07 Jan 2025 18:08:01 +0000 Original-Received: (at 73404) by debbugs.gnu.org; 7 Jan 2025 18:07:28 +0000 Original-Received: from localhost ([127.0.0.1]:44551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVDzE-00054u-8D for submit@debbugs.gnu.org; Tue, 07 Jan 2025 13:07:28 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:34157) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tVDzC-00054X-5J for 73404@debbugs.gnu.org; Tue, 07 Jan 2025 13:07:26 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 07DEB1C0004; Tue, 7 Jan 2025 18:07:18 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Mon, 06 Jan 2025 15:07:28 -0500") X-GND-Sasl: juri@linkov.net 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:298737 Archived-At: > But indeed for list operations in indentation-based languages like > Haskell/Python/Coffeescript/YAML, we're faced again with the fact that > a closing LF can close several nested lists, so when going backward > there is some amount of ambiguity (and I'd argue that it's preferable > (and closer to the historical behavior) to choose to jump less far, > e.g. so that `C-M-n C-M-p` never moves backward). 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.