GNU bug report logs - #78458
31.0.50; treesit.el: thing navigation functions work incorrectly with some Clojure nodes

Previous Next

Package: emacs;

Reported by: Roman Rudakov <rrudakov <at> fastmail.com>

Date: Fri, 16 May 2025 15:38:02 UTC

Severity: normal

Fixed in version 31.0.50

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

Full log


Message #11 received at 78458 <at> debbugs.gnu.org (full text, mbox):

From: Roman Rudakov <rrudakov <at> fastmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 78458 <at> debbugs.gnu.org
Subject: Re: bug#78458: 31.0.50; treesit.el: thing navigation functions work
 incorrectly with some Clojure nodes
Date: Fri, 16 May 2025 18:18:27 +0200
Juri Linkov <juri <at> linkov.net> writes:

>> Reproducing issues requires installing clojure-ts-mode from NonGNU 
>> ELPA.
>
> Please also try all these test cases
> after calling 'treesit-cycle-sexp-type'.
This makes it somewhat better.

There is still some weird behavior (I guess it's mostly related to the 
Clojure grammar itself):

#|(-> (.-value (.-target %)))

If the point is at "|", calling "forward-sexp" moves it to:

#(->| (.-value (.-target %)))

And executing M-x raise-sexp produces:

(->

How can I set the default "cycle type" programmatically for a major 
mode?

--
Best regards, Roman




This bug report was last modified 28 days ago.

Previous Next


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