From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74429: [PATCH] [nt/INSTALL.W64] configure error about missing tree-sitter Date: Sat, 23 Nov 2024 17:39:39 +0200 Message-ID: <86frniklhg.fsf@gnu.org> References: <20241118150312.18182-1-hiweedmandriva3@163.com> <86bjy8rgo6.fsf@gnu.org> <2af5cb9.3961.19358f7ed16.Coremail.hiweedmandriva3@163.com> <86o726kr41.fsf@gnu.org> <7fcfb030.3f64.1935989b075.Coremail.hiweedmandriva3@163.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27635"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74429@debbugs.gnu.org To: "Hiweed Mandriva3" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 16:40:40 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tEsFT-00072B-RQ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 16:40:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEsEw-0000Ch-Ex; Sat, 23 Nov 2024 10:40:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEsEt-00009n-0F for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 10:40:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEsEs-00007w-NS for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 10:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=w3DGOfYmlzKTahy09Bkr+oe8TKyu34p8uNYTB1uKY+8=; b=ddCohK/pwizg05NTnjlFkEEmH4eAprVwyCP5p6CTIfoW0gwVDUsS3i1hDCuQ3z/TmJ8S3XUFSrg/2pI4n/4oHC8TGpjIXx1IEEAAGVHruPjLOH4cVwymCJWpVjonmyuNyDvabEQWu2/qAkjn8J8KmvrXIwXlP7UJEvbw+KXb7U6OMNTzY2icLZcCGpMKM4A54H662v4osl0Ugn4f70VoeJnEZI2f0AMA8tfOnusTIIEVwcy04+x9+fl4bsa6vS4Ljbx4H9OMau2XUFh3mrywFVCmJEo3F2Tl2zhE24nLuJS9SLxu8BAe3avE2saUl3JcLrvioXq6SEts7CfL0dxZIw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEsEs-00056m-Bf for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 10:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74429 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74429-submit@debbugs.gnu.org id=B74429.173237639119615 (code B ref 74429); Sat, 23 Nov 2024 15:40:02 +0000 Original-Received: (at 74429) by debbugs.gnu.org; 23 Nov 2024 15:39:51 +0000 Original-Received: from localhost ([127.0.0.1]:58680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEsEh-00056I-Ea for submit@debbugs.gnu.org; Sat, 23 Nov 2024 10:39:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEsEf-000565-FJ for 74429@debbugs.gnu.org; Sat, 23 Nov 2024 10:39:50 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEsEZ-00006R-3u; Sat, 23 Nov 2024 10:39:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=w3DGOfYmlzKTahy09Bkr+oe8TKyu34p8uNYTB1uKY+8=; b=sdZkxtMyGS+8 1Ou0AM/YwtfnV6SVs8h1Nj8JYsKxwopV4+1qaK78qiZNhko/IFeGcedbMFP8Ya675BTAXE2+7M3Io KyA6wDeQsPDG3+oPfQ0cEcPYDozWn1IX6RTIKuvmkoWO7M9tfezoQYWExpdSETsk6kso+xfhhYwro EyP1QVXi+cToV7vPhtuTb+XcBEdjy61K0oVXnBpVZiESwYlP6w7aTQIR/3nyPNV39Ndbmc0lL/kue URx+hJ4kCR9tbhFf13dhjh0T2HGSL+/11GfKrlrYER00lL2Riph+5zMlQjNdV+/6psVF53iCmHn7Q e+qYWx3duto+4wDC/TO/BQ==; In-Reply-To: <7fcfb030.3f64.1935989b075.Coremail.hiweedmandriva3@163.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295844 Archived-At: > Date: Sat, 23 Nov 2024 23:00:16 +0800 (CST) > From: "Hiweed Mandriva3" > 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.