unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Hiweed Mandriva3" <hiweedmandriva3@163.com>
Cc: 74429@debbugs.gnu.org
Subject: bug#74429: [PATCH] [nt/INSTALL.W64] configure error about missing tree-sitter
Date: Sat, 23 Nov 2024 17:39:39 +0200	[thread overview]
Message-ID: <86frniklhg.fsf@gnu.org> (raw)
In-Reply-To: <7fcfb030.3f64.1935989b075.Coremail.hiweedmandriva3@163.com>

> Date: Sat, 23 Nov 2024 23:00:16 +0800 (CST)
> From: "Hiweed Mandriva3" <hiweedmandriva3@163.com>
> Cc: 74429@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.





  reply	other threads:[~2024-11-23 15:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-18 15:03 bug#74429: [PATCH] [nt/INSTALL.W64] configure error about missing tree-sitter Nerd
2024-11-21 11:04 ` Eli Zaretskii
2024-11-23 12:21   ` bug#74429: " Hiweed Mandriva3
2024-11-23 13:38     ` Eli Zaretskii
2024-11-23 15:00       ` Hiweed Mandriva3
2024-11-23 15:39         ` Eli Zaretskii [this message]
2024-11-23 16:46           ` Hiweed Mandriva3
2024-11-23 13:09   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86frniklhg.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74429@debbugs.gnu.org \
    --cc=hiweedmandriva3@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).