Eli Zaretskii writes: >> From: Richard Stallman >> Cc: emacs-devel@gnu.org >> Date: Mon, 23 Dec 2024 23:52:43 -0500 >> >> Ideally, users should be able install the grammars separately, perhaps >> using their `make install' or `apt', and Emacs would only use them >> where they normally get installed. That is ideal because it is not >> very integrated -- it preserves modularity. In particular, it assures >> that the details of how they get installed are not a direct concern of >> Emacs maintenance. > > Emacs needs to be built with the tree-sitter library to support the > modes based on it, and the grammar library needs to be installed. If > Emacs was built without tree-sitter, or if the grammar required for a > mode is not installed, the mode will display a warning to that effect. > Not sure whether this has been mentioned: there is a "treesit-auto"[1] addon on melpa that can detect missing treesitter grammars and handle their installation automatically. It would be great if something similar can be integrated into core, and if possible, grammar version handling and compatibility with distribution supplied grammar would be good to have. [1] https://github.com/renzmann/treesit-auto -- Regards, Xiyue Deng