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#62155: 30.0.50; elixir-ts-mode.elc warning Date: Mon, 13 Mar 2023 16:33:18 +0200 Message-ID: <83fsa8u3f5.fsf@gnu.org> References: <877cvl9zgl.fsf.ref@yahoo.com> <877cvl9zgl.fsf@yahoo.com> <878rg0n65g.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23584"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ruijie@netyu.xyz, luangruo@yahoo.com, 62155@debbugs.gnu.org To: Wilhelm Kirschbaum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 13 15:34:25 2023 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 1pbjFn-0005sD-J3 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Mar 2023 15:34:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbjFU-0005Tu-GB; Mon, 13 Mar 2023 10:34:04 -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 1pbjFT-0005TV-8j for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 10:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbjFS-0002Ah-Th for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 10:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbjFS-00018I-DC for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2023 10:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Mar 2023 14:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62155 X-GNU-PR-Package: emacs Original-Received: via spool by 62155-submit@debbugs.gnu.org id=B62155.16787180174290 (code B ref 62155); Mon, 13 Mar 2023 14:34:02 +0000 Original-Received: (at 62155) by debbugs.gnu.org; 13 Mar 2023 14:33:37 +0000 Original-Received: from localhost ([127.0.0.1]:35338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbjF3-000176-1U for submit@debbugs.gnu.org; Mon, 13 Mar 2023 10:33:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59010) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbjF1-00016f-0Z for 62155@debbugs.gnu.org; Mon, 13 Mar 2023 10:33:35 -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 1pbjEv-0001ui-DK; Mon, 13 Mar 2023 10:33:29 -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=r/bqPWCyBWvSGa+x8p99knISSCDj50QzqApUhCAM72g=; b=ENprszY1eZK8 vEqtUNPsgSc7Ir1vQnkEkVYXrfzePVqhkC91TWgY4TVQXC7K33hUwj+3Eg9OyBcVvkVT6Lkwz6ClS XEjjtqnxhg7XQNJxSy3URWSqidpAMajxKNRfTKbCuIiso+h8F9kwZDkG/kKbQCfUMTdbJ5j4JNg8j xT7E48HBgQa95VhT2xmsLKh7WxxNojlQ2DDl4g1tsHw/HwwXx8tyI3bivMUbvtj0uf3OuzDk+39/K MAiT0AZsbupyM2/Y5yb9pBWEuVUknUU4ZcGAv+JkksvoelavM8tYtPyB0KQJPgXd25VrksXNKu9Rs SoE/EOdgRhNpN31lla9jTw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbjEu-0005Hq-S9; Mon, 13 Mar 2023 10:33:29 -0400 In-Reply-To: <878rg0n65g.fsf@gmail.com> (message from Wilhelm Kirschbaum on Mon, 13 Mar 2023 15:08:10 +0200) 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:257905 Archived-At: > Cc: luangruo@yahoo.com, 62155@debbugs.gnu.org > From: Wilhelm Kirschbaum > Date: Mon, 13 Mar 2023 15:08:10 +0200 > > I can see there is still an issue with loading heex-ts-mode from > elixir-ts-mode, but not quite sure how to > immediately resolve it. I will have a look in a couple of hours. One possibility is to add defvar for each variable defined by heex-ts-mode that elixir-ts-mode needs to use, and remove the require of heex-ts-mode. Since heex-ts-mode is loaded at run time, I think this should be enough. > The problem is in the top of elixir-ts-mode.el: (require > 'heex-ts-mode) and then we call > (treesit-ready-p 'heex) in heex-ts-mode. Yes. > I guess the intention with the convention here was to only load the > -ts-mode when the user explicitly requires, but it breaks the way I > called (require 'heex-ts-mode) from elixir-ts-mode.el. Yes.