From unknown Mon Aug 18 19:29:14 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#57427 <57427@debbugs.gnu.org> To: bug#57427 <57427@debbugs.gnu.org> Subject: Status: [PATCH] gnu: emacs-polymode: Add patch for native compilation. Reply-To: bug#57427 <57427@debbugs.gnu.org> Date: Tue, 19 Aug 2025 02:29:14 +0000 retitle 57427 [PATCH] gnu: emacs-polymode: Add patch for native compilation. reassign 57427 guix-patches submitter 57427 Hilton Chain severity 57427 normal tag 57427 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 26 10:06:26 2022 Received: (at submit) by debbugs.gnu.org; 26 Aug 2022 14:06:26 +0000 Received: from localhost ([127.0.0.1]:54190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRZyc-0004d5-AK for submit@debbugs.gnu.org; Fri, 26 Aug 2022 10:06:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:38130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRZyZ-0004cu-CR for submit@debbugs.gnu.org; Fri, 26 Aug 2022 10:06:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42352) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRZyT-0000dE-RG for guix-patches@gnu.org; Fri, 26 Aug 2022 10:06:22 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:37940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRZyR-0002eP-6x for guix-patches@gnu.org; Fri, 26 Aug 2022 10:06:17 -0400 Date: Fri, 26 Aug 2022 22:05:45 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1661522771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kd17m/FGBe59VKg5FNbR+pm4tvIWrYV5WWdVr2AtJtY=; b=DTC9B0EydTp68ohDvGsG10h+mU5CHYQiLVXHBjKtAcMjV4MMYYmhC9t/TV9KSydKJxvaTS tuwjBFf3JRu+rKCqzb7eUviHqRfjuKjF5Eo+DZXzXBQ7fyibrP+HOHkts2IAjK3/sXLRGT qxJk6IDXqbr2Xt3b3ggWSzJozxeTvsyeZgCZQxnFKdFMJHN2BBM3mLHYVxJCy7+Z+Vvh6C jkgfHusg4XbmS/ZNzCh3fdumiOcyosSoKnQpXCNbdDQQtyZApg6Qf7hmcQBgWzIsp1JMei hfHdTzWVsodhkLn2C+cAyLWi5keueC9HV2rucNrjQGFEisjQtjLn6Q/7CGSd7A== Message-ID: From: Hilton Chain To: guix-patches@gnu.org Subject: [PATCH] gnu: emacs-polymode: Add patch for native compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) =46rom 9615148440a3be38e8763bdd611568761511f0f7 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Fri, 26 Aug 2022 21:41:37 +0800 Subject: [PATCH] gnu: emacs-polymode: Add patch for native compilation. * gnu/packages/emacs-xyz.scm (emacs-polymode)[source]: Add patch. * gnu/packages/patches/emacs-polymode-fix-lexical-variable-error.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. --- gnu/local.mk | 2 + gnu/packages/emacs-xyz.scm | 5 ++- ...-polymode-fix-lexical-variable-error.patch | 37 +++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/emacs-polymode-fix-lexical-variabl= e-error.patch diff --git a/gnu/local.mk b/gnu/local.mk index 26dfb6afe2..03d5f2ff15 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -51,6 +51,7 @@ # Copyright =C2=A9 2022 Remco van 't Veer # Copyright =C2=A9 2022 Artyom V. Poptsov # Copyright =C2=A9 2022 John Kehayias +# Copyright =C2=A9 2022 Hilton Chain # # This file is part of GNU Guix. # @@ -1040,6 +1041,7 @@ dist_patch_DATA =3D \ %D%/packages/patches/emacs-highlight-stages-add-gexp.patch \ %D%/packages/patches/emacs-libgit-use-system-libgit2.patch \ %D%/packages/patches/emacs-lispy-fix-thread-last-test.patch \ + %D%/packages/patches/emacs-polymode-fix-lexical-variable-error.patch \ %D%/packages/patches/emacs-source-date-epoch.patch \ %D%/packages/patches/emacs-telega-path-placeholder.patch \ %D%/packages/patches/emacs-telega-test-env.patch \ diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 379c5fb22c..69fa392eee 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17308,7 +17308,10 @@ (define-public emacs-polymode (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "18ssl2h861dm2jkd3df6wkfr48p8zk337dbvpq5522kia7fq1lbn")))) + (base32 "18ssl2h861dm2jkd3df6wkfr48p8zk337dbvpq5522kia7fq1lbn")) + ;; Cherry-picked from upstream, remove when bumping to 0.2.3. + (patches + (search-patches "emacs-polymode-fix-lexical-variable-error.patch")= ))) (build-system emacs-build-system) (home-page "https://github.com/polymode/polymode") (synopsis "Framework for multiple Emacs modes based on indirect buffer= s") diff --git a/gnu/packages/patches/emacs-polymode-fix-lexical-variable-error= .patch b/gnu/packages/patches/emacs-polymode-fix-lexical-variable-error.pat= ch new file mode 100644 index 0000000000..77a8452c2a --- /dev/null +++ b/gnu/packages/patches/emacs-polymode-fix-lexical-variable-error.patch @@ -0,0 +1,37 @@ +From 8b83fa772a71efc9dc030c43db2cba944e4338c1 Mon Sep 17 00:00:00 2001 +From: Kien Nguyen +Date: Wed, 19 May 2021 23:15:01 +0900 +Subject: [PATCH] Fix using of temporary lexical variable causes error in + native compiling + +--- + polymode-core.el | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/polymode-core.el b/polymode-core.el +index e7d40be..ef316f8 100644 +--- a/polymode-core.el ++++ b/polymode-core.el +@@ -2088,14 +2088,14 @@ Elements of LIST can be either strings or symbols." + (stringp pm--output-file) + (pm--file-mod-time pm--output-file))) + (imt (and omt (pm--file-mod-time pm--input-file))) +- (action (if is-exporter "exporting" "weaving")) + (ofile (if (and imt (time-less-p imt omt)) + (progn + (message "Not re-%s as input file '%s' ha= sn't changed" +- (file-name-nondirectory ifile) a= ction) ++ (if is-exporter "exporting" "wea= ving") ++ (file-name-nondirectory ifile)) + pm--output-file) + (message "%s '%s' with '%s' ..." +- (capitalize action) ++ (if is-exporter "EXPORTING" "WEAVING= ") + (file-name-nondirectory ifile) + (eieio-object-name processor)) + (let ((fn (with-no-warnings + +base-commit: 44265e35161d77f6eaa09388ea2256b89bd5dcc8 +--=20 +2.37.2 + base-commit: de2f419618b9929cf65b477568f21bc77e218b70 --=20 2.37.2 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 18 08:17:37 2022 Received: (at submit) by debbugs.gnu.org; 18 Sep 2022 12:17:37 +0000 Received: from localhost ([127.0.0.1]:48198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZtEu-0007rQ-Ue for submit@debbugs.gnu.org; Sun, 18 Sep 2022 08:17:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:50044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZtEt-0007rI-9u for submit@debbugs.gnu.org; Sun, 18 Sep 2022 08:17:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZtEr-0003Ed-PZ for guix-patches@gnu.org; Sun, 18 Sep 2022 08:17:35 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:49431) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZtEo-0005wL-VL for guix-patches@gnu.org; Sun, 18 Sep 2022 08:17:33 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 0DB54C0002; Sun, 18 Sep 2022 12:17:21 +0000 (UTC) From: Nicolas Goaziou To: Hilton Chain via Guix-patches via Subject: Re: [bug#57427] [PATCH] gnu: emacs-polymode: Add patch for native compilation. References: Date: Sun, 18 Sep 2022 14:17:22 +0200 In-Reply-To: (Hilton Chain via Guix-patches via's message of "Fri, 26 Aug 2022 22:05:45 +0800") Message-ID: <87edw8zxkd.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.198; envelope-from=mail@nicolasgoaziou.fr; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: Hilton Chain , 57427-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hello, Hilton Chain via Guix-patches via writes: > From 9615148440a3be38e8763bdd611568761511f0f7 Mon Sep 17 00:00:00 2001 > From: Hilton Chain > Date: Fri, 26 Aug 2022 21:41:37 +0800 > Subject: [PATCH] gnu: emacs-polymode: Add patch for native > compilation. Applied (finally!). Thank you. Regards, -- Nicolas Goaziou From unknown Mon Aug 18 19:29:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Oct 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator