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.help Subject: Re: emacs 29.1: Errors with java-ts-mode on Windows Date: Tue, 31 Oct 2023 14:23:20 +0200 Message-ID: <83o7gf9e13.fsf@gnu.org> References: <82ttq7jaef.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2561"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 31 13:24:17 2023 Return-path: Envelope-to: geh-help-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 1qxnn6-0000Th-E9 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 31 Oct 2023 13:24:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxnmR-000639-Gq; Tue, 31 Oct 2023 08:23:35 -0400 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 1qxnmN-00062O-AR for help-gnu-emacs@gnu.org; Tue, 31 Oct 2023 08:23:32 -0400 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 1qxnmN-0005rJ-2a for help-gnu-emacs@gnu.org; Tue, 31 Oct 2023 08:23:31 -0400 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=uDan4Hyjx5ACqPU02dPFE0tmeNAxNBY4KAONBmPibKA=; b=brKlpgX6RMsk iq4fH/nFhfd43HWzYqgy0Q/0wCCUUgUqDoZTCLB29YVcBs0pU4vb/N8eAFlZkDqW8dH+BAOHx1izg YA8Mwe2Ig0qY5jwkMVljHM7v8MA4woAvayOT6XZOnZuRrdBmp0BGyWPlUsaFH+NV26gxSv20ZE4/b 1fiROD4R/G0YfbyA3LWd/GU9a5tFiXLyfe9N7IE3PL/F/IqYKWONrx/KXClRUnroY9HtMtm4gPEQa gpc5/W3dEHWZ5ahkdAo3vN9h71jmddKtfFdOVvXq6QW/PFK7kigLOdVNuO6ZjYiwO/PFRN/Gfb95L +8AMtxHu6Jfl8NHu9uKGag==; In-Reply-To: <82ttq7jaef.fsf@gmail.com> (message from Pascal Quesseveur on Tue, 31 Oct 2023 12:31:36 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145436 Archived-At: > From: Pascal Quesseveur > Date: Tue, 31 Oct 2023 12:31:36 +0100 > > I have installed Emacs 29.1 on Windows from: > > - emacs-29.1_2-no-deps, > - emacs-29-2023-08-10-deps, > > - compiled libraries for treesitter from > https://github.com/emacs-tree-sitter/tree-sitter-langs/releases. I > use the latest available version: 0.12.73. > > I use major-mode-remap-alist to declare the treesitter modes I want to > use: > > (setq major-mode-remap-alist > '((c-mode . c-ts-mode) > (cpp-mode . cpp-ts-mode) > (java-mode . java-ts-mode))) > > It's working fine for c and c++ modes, but I get the following error > when loading a java source file: And if you don't use major-mode-remap-alist, but instead load jave-ts-mode manually and visit the same source file, this problem doesn't happen?