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: Juri Linkov <juri <at> linkov.net>
To: 77256 <at> debbugs.gnu.org
Cc: Yuan Fu <casouri <at> gmail.com>,  Vincenzo Pupillo <v.pupillo <at> gmail.com>
Subject: bug#77256: Treesit language-at-point
Date: Tue, 25 Mar 2025 20:42:02 +0200
Do we still need such complicated functions as
mhtml-ts-mode--language-at-point, js--treesit-language-at-point, etc.
that duplicate the rules from 'treesit-range-rules'
when now the default language-at-point function could be implemented
just as

  (treesit-parser-language
   (or (seq-some (lambda (o) (overlay-get o 'treesit-parser))
                 (overlays-at (point) t))
       treesit-primary-parser))




This bug report was last modified 92 days ago.

Previous Next


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