GNU bug report logs - #78503
30.0.92; tree-sitter elixir-ts-mode structural movement broken

Previous Next

Package: emacs;

Reported by: Bart Otten <bart.otten85 <at> gmail.com>

Date: Tue, 20 May 2025 04:30:03 UTC

Severity: normal

Found in version 30.0.92

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Bart Otten <bart.otten85 <at> gmail.com>
Cc: Wilhelm H Kirschbaum <wkirschbaum <at> gmail.com>, 78503 <at> debbugs.gnu.org
Subject: bug#78503: 30.0.92; tree-sitter elixir-ts-mode structural movement broken
Date: Thu, 22 May 2025 09:39:08 +0300
>>> ```
>>> def foo(arg) do
>>>    IO.inspect("some")
>>> end
>>> ```
>>>
>>> Expected:
>>> - into args
>>> - nice to have: into do block (after do)
>>> - into argument list
>>> - into quoted string
>>
>> This is exactly how 'C-M-d' already works when you toggle
>> 'M-x treesit-cycle-sexp-type RET'.
>
> It does jump to into args (inside the parens), but after that it does nothing but show a
> message indicating it is at the bottom level. Which afaik it is not.
>
> To be clear:
> - on a of arg
> - nice to have: into do block (after do)
> - on " of "some"
> - nice to have: on s of "some"

'down-list' can't go out of a position inside "(arg)"
because it is at the bottom level of parenthesis.
This is what 'up-list' intended to do.  So you need
to type 'M-)' or anything that is bound to 'up-list'.

>> This is what 'C-M-d' already does after 'M-x treesit-cycle-sexp-type RET'.
>
> Confirmed
>
>> So let's enable 'treesit-cycle-sexp-type' by default, but only for
>> 'down-list'.
>
> Would be great.

Thanks, done.




This bug report was last modified 11 days ago.

Previous Next


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