Subject: Re: bug#63750: 30.0.50; tree-sitter: `treesit-language-source-alist' is not customisable

From: Juri Linkov <[email-masked]>
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'.")