Subject: bug#74429: [PATCH] [nt/INSTALL.W64] configure error about missing tree-sitter

From: Eli Zaretskii <[email-masked]>
Date: Sat, 23 Nov 2024 17:39:39 +0200

> Date: Sat, 23 Nov 2024 23:00:16 +0800 (CST)
> From: "Hiweed Mandriva3" <[email-masked]>
> Cc: [email-masked]
> 
> >> Just now, I confirm that tree-sitter major mode is not enabled when opening a C source file.
> >
> >If you rename the DLL to the name libtree-sitter-0.dll, tree-sitter
> >major modes should be enabled.
> 
> after rename, open a C source file and check `c-h m` the major mode is still `c-mode` not `c-ts-mode`.

Just renaming is not enough, you need also to load c-ts-mode.

> Build the latest commit https://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-30&id=e14007ad631120a3f7521e503c8de86aca849bad
> of branch eamcs-30 and with library name libtree-sitter-0.24.dll
> open a C source file and check major mode is still `c-mode`
> 
> How do I check whether tree-sitter works well exactly? Thanks.

See above.  Recipe:

  emacs -Q
  M-x load-library RET c-ts-mode RET
  C-x C-f some-file.c RET
  M-: major-mode RET

The above should yield c-ts-mode.