GNU bug report logs - #77256
Treesit language-at-point

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Tue, 25 Mar 2025 18:44:02 UTC

Severity: normal

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: Yuan Fu <casouri <at> gmail.com>, Vincenzo Pupillo <v.pupillo <at> gmail.com>, 77256 <at> debbugs.gnu.org
Subject: bug#77256: Treesit language-at-point
Date: Tue, 08 Apr 2025 15:52:08 -0400
>> This would make sure the `treesit-language-at-point-function` is good
>> enough to implement the default behavior and it makes it possible to use
>> `add-function` on `treesit-language-at-point-function`.
>
> Unfortunately, it's too late to add a non-nil default value.

Is it?
I can't find any code out there that seems to care what is its default
value (all users set it but doesn't look at it, AFAICT).

> I already tried to do the same by adding 'forward-sexp-default-function'
> to 'forward-sexp-function', but failed spectacularly (bug#70426),

Yes, that one is much harder (it's one of the first I tried to change),


        Stefan





This bug report was last modified 91 days ago.

Previous Next


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