GNU bug report logs - #74429
[PATCH] [nt/INSTALL.W64] configure error about missing tree-sitter

Previous Next

Package: emacs;

Reported by: Nerd <hiweedmandriva3 <at> 163.com>

Date: Tue, 19 Nov 2024 05:28:02 UTC

Severity: normal

Tags: patch

Merged with 74431

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Hiweed Mandriva3" <hiweedmandriva3 <at> 163.com>
To: "Eli Zaretskii" <eliz <at> gnu.org>
Cc: 74429 <at> debbugs.gnu.org, "hiweedmandriva3 <at> 163.com" <hiweedmandriva3 <at> 163.com>
Subject: bug#74429: [PATCH] [nt/INSTALL.W64] configure error about missing tree-sitter
Date: Sun, 24 Nov 2024 00:46:12 +0800 (CST)
[Message part 1 (text/plain, inline)]


















At 2024-11-23 23:39:39, "Eli Zaretskii" <eliz <at> gnu.org> wrote:
>> Date: Sat, 23 Nov 2024 23:00:16 +0800 (CST)
>> From: "Hiweed Mandriva3" <hiweedmandriva3 <at> 163.com>
>> Cc: 74429 <at> debbugs.gnu.org
>> 
>> >> 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.


Thanks for the steps!
By following them, tree-sitter major mode c-ts-mode works well for emacs-30 branch.
I will try master branch after the building issue is resolved.
[Message part 2 (text/html, inline)]

This bug report was last modified 236 days ago.

Previous Next


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