Subject: bug#77256: Treesit language-at-point

From: Stefan Monnier <[email-masked]>
Date: Tue, 08 Apr 2025 14:22:01 -0400

>>   (if treesit-language-at-point-function
>>       (funcall treesit-language-at-point-function position)

BTW, can we please avoid this anti-pattern?
Instead, we should unconditionally call
`treesit-language-at-point-function` and give a non-nil default value to
this variable.

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

        Stefan