; * etc/NEWS: Instructions for builds without tree-sitter (bug#60559)

This commit is contained in:
Eli Zaretskii 2023-01-04 20:51:04 +02:00
parent 8d530ca654
commit cef875f6c5

View file

@ -3157,6 +3157,15 @@ files, the new modes based on tree-sitter are for now entirely
optional, and you must turn them on manually, or customize
'auto-mode-alist' to turn them on automatically.
Where no major modes previously existed in Emacs for editing the kinds
of files for which Emacs now provides a tree-sitter based mode, Emacs
will now try to enable the tree-sitter mode automatically when you
visit such files, and will display a warning if the tree-sitter
library or the parser grammar library is not available. To prevent
the warnings, either build Emacs with tree-sitter and install the
grammar libraries, or customize 'auto-mode-alist' to specify some
other major mode (or even Fundamental mode) for those kinds of files.
Each major mode based on tree-sitter needs a language grammar library,
usually named "libtree-sitter-LANG.so" ("libtree-sitter-LANG.dll" on
MS-Windows), where LANG is the corresponding language name. Emacs