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: 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.




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.