Subject: Re: bug#78503: 30.0.92; tree-sitter elixir-ts-mode structural movement broken

From: Juri Linkov <[email-masked]>
Date: Wed, 21 May 2025 09:32:04 +0300

>>> 1.) `defmodule` is considered a function definition and so moving up from the first
>>> actual function definition `def my_fun do` causes the point to jump to
>>> 'defmodule my_mod do'. Invoking `end-of-defun` jumps to the end of the defmodule block.
>>
>> Also Elixir files usually have only one module, so the optimalization
>> to move to other modules might have more downsides than advantages.

Let's wait when Wilhelm will confirm this change.

>>>> 2.) When you use `down-list` while on a function definition line,
>>>> nothing happens. I tried to fix it, ony to find out that
>>>> `backward-up-list` will jump to `defmodule` when invoked while point is at a
>>>> function argument, instead of navigating out of the argument list only.  
>
> Ok, I will create a new variable 'treesit-down-list-regexp' for 'down-list'.

A new variable is added now, so this part is fixed.