GNU bug report logs - #73404
30.0.50; [forward/kill/etc]-sexp commands do not behave as expected in tree-sitter modes

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Sat, 21 Sep 2024 05:13:01 UTC

Severity: normal

Merged with 74366

Found in version 30.0.50

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> linkov.net>
Cc: mickey <at> masteringemacs.org, Eli Zaretskii <eliz <at> gnu.org>, Theodor Thornhill <theo <at> thornhill.no>, casouri <at> gmail.com, 73404 <at> debbugs.gnu.org
Subject: bug#73404: 30.0.50; [forward/kill/etc]-sexp commands do not behave as expected in tree-sitter modes
Date: Sun, 12 Jan 2025 10:08:57 -0500
>> A) If the cursor is right before `a <- ...`, I definitely expect `C-M-f` to
>>    move just over the identifier.
> Is the cursor at the beginning of the line or after indentation?

I was thinking "after indentation".
I don't know what behavior I'd want if it's at the beginning of the line.

> This heuristics looks whitespace-sensitive too: if the cursor was
> after the newline at the beginning of the next line then `C-M-f`
> would move over the next symbol.

Of course: in such languages, LF is very much significant.

>> In (C) what I propose is the behavior that SMIE uses in such cases.
> Is SMIE sensitive to the position of the cursor inside whitespace region
> including newlines?

In those languages where LF is a statement separator
(e.g. `octave-mode`), yes.


        Stefan





This bug report was last modified 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.