GNU bug report logs - #63750
30.0.50; tree-sitter: `treesit-language-source-alist' is not customisable

Previous Next

Package: emacs;

Reported by: Mickey Petersen <mickey <at> masteringemacs.org>

Date: Sat, 27 May 2023 12:07:01 UTC

Severity: normal

Found in version 30.0.50

Full log


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

From: Juri Linkov <juri <at> linkov.net>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 63750 <at> debbugs.gnu.org,
 Yuan Fu <casouri <at> gmail.com>
Subject: Re: bug#63750: 30.0.50; tree-sitter:
 `treesit-language-source-alist' is not customisable
Date: Wed, 02 Apr 2025 21:19:25 +0300
> Should we close this bug report?

https://lists.gnu.org/archive/html/emacs-devel/2025-03/msg01516.html
recently proposed to add the language-source information
inside every ts-mode.  So instead of a plain comment like

  ;; c-ts-mode is known to work with the following languages and version:
  ;; - tree-sitter-c: v0.23.4-1-g3aa2995
  ;;
  ;; c++-ts-mode is known to work with the following languages and version:
  ;; - tree-sitter-cpp: v0.23.4-1-gf41b4f6

we could prove the same for more easier installation by users
in an internal variable:

  (defvar c-ts-mode--language-source-alist
    '((c
       "https://github.com/tree-sitter/tree-sitter-c";
       "v0.23.4-1-g3aa2995")
      (cpp
       "https://github.com/tree-sitter/tree-sitter-cpp";
       "v0.23.4-1-gf41b4f6"))
    "Tree-sitter language parsers required by `c-ts-mode' and `c++-ts-mode'.")




This bug report was last modified 76 days ago.

Previous Next


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