From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id GDx8L3GctWXMFgEA62LTzQ:P1 (envelope-from ) for ; Sun, 28 Jan 2024 01:14:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GDx8L3GctWXMFgEA62LTzQ (envelope-from ) for ; Sun, 28 Jan 2024 01:14:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bayesians.ca header.s=protonmail2 header.b="VaguV/0z"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706400881; a=rsa-sha256; cv=none; b=iy6zwVvYuec4D0ZNekpaZwTqTjEKVIzip8RrdSgVOV+WGhGwD3x8n2vi6Wgm/OAOc2wj0B oF46fUTpaUjgh5AWDjEL+5oRQWQmu+Gyei477axW356mZizBY5a7u4XTLPSIlip7aD6wEW ajC6ukEQTeMHtcPrpvfdm3kZF+5Ejf02esa3VabrkliJ7Ux2VOS2rAbd/j8JLXWA2NYXbM XYjjlTY2J7o4GHgo6BFnEcjb1vyI8IU6lqkImlZpD10n91cbiv49UrEgw/YinRJM85un8d VdtXf9F1q16ADqEvUYha17/KNLKGB0HqnVAXp4tujyEOHRSMToW4tJiWterNIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=bayesians.ca header.s=protonmail2 header.b="VaguV/0z"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706400881; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7cExVKwu0EVa7wpLqftn2/RRF6ISmrPVZpc1TUpt8yw=; b=VllkdiMkWjnB2E2gdWY3j5AhzzA8Fm6v9OV65MptWS8u7pYE7u7uUBmNafq7Nn6RlBWYgE K9PFxeymQwCjpyrFFUia998Io1e37WmG0h2rZKPBQRass9WOtA3zYEz4ADsucID2THqQBe U+BMJDPZH5v97K5H6naP8IDSExWe6O7sjyX5noyf1ybgAMaYGRF6ptSpSVeTNDAvypxH59 K+ZXcP4CAL2LYnXLx1eMyPAjokp5iYBhFq9qVU9cx98mCNhrDH7dCBvVipBChBZesaA6qZ DHxosQvZiY4MBsvY7My2gdKrOQyxs+FJZqX724oG7OA948GYu5g6g2GOceh5Vg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5627576B47 for ; Sun, 28 Jan 2024 01:14:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTsoI-0006Xf-5i; Sat, 27 Jan 2024 19:14:06 -0500 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 1rTso8-0006Wv-K6 for guix-patches@gnu.org; Sat, 27 Jan 2024 19:14:01 -0500 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 1rTso6-0002xr-Lm for guix-patches@gnu.org; Sat, 27 Jan 2024 19:13:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rTsoD-00027i-Ub for guix-patches@gnu.org; Sat, 27 Jan 2024 19:14:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67260] [PATCH v6 1/7] gnu: emacs: Wrap EMACSNATIVELOADPATH. References: In-Reply-To: Resent-From: Suhail Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Jan 2024 00:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67260 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: cox.katherine.e+guix@gmail.com, 67260@debbugs.gnu.org, andrew@trop.in Received: via spool by 67260-submit@debbugs.gnu.org id=B67260.17064008288137 (code B ref 67260); Sun, 28 Jan 2024 00:14:01 +0000 Received: (at 67260) by debbugs.gnu.org; 28 Jan 2024 00:13:48 +0000 Received: from localhost ([127.0.0.1]:56156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTso0-00027A-D5 for submit@debbugs.gnu.org; Sat, 27 Jan 2024 19:13:48 -0500 Received: from mail-4018.proton.ch ([185.70.40.18]:34863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTsnx-00026v-5w for 67260@debbugs.gnu.org; Sat, 27 Jan 2024 19:13:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bayesians.ca; s=protonmail2; t=1706400809; x=1706660009; bh=7cExVKwu0EVa7wpLqftn2/RRF6ISmrPVZpc1TUpt8yw=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=VaguV/0zgElhaX6J6Gg2im76An7BMNanPGYdJ/Oru8LMmIqXKWDe9TWqCCofV6Z3E MPDu/cYu4qSgA6S9b+CR4VpQi8VY/0Vjzj06kse0TkU3ErWJifPh3qrEL2g0RTReeY orYIzfKZV+4imiS8yzd+w3mWacB29XtTjc8z9dPwtIl02qSxRg8CIQDK/UaoeX4kdR p21fqO3dzXHWfAw+95O3veGeN/OiuPukyI4GZrcnZ7UfDtNhiXqXWrlynZcmMsVbpT LMj9pNqGACZIUVHydny6fuT7mY5yl9c/5DsbOzPb9TsZwpxDuxYe/vsFM8AAzQhq5x /iF1/70KLAFjw== Date: Sun, 28 Jan 2024 00:13:21 +0000 Message-ID: <87ede22u3m.fsf@> Feedback-ID: 38691229:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Suhail X-ACL-Warn: , Suhail via Guix-patches From: Suhail via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -3.46 X-Migadu-Queue-Id: 5627576B47 X-Migadu-Spam-Score: -3.46 X-TUID: 3l6C2tkTjoZe Liliana Marie Prikler writes: >> > 2. failure to load natively-compiled version of some builtin >> > libraries like uniquify due to incorrect naming of .eln files >>=20 >> This issue remains as of v7 of the patch series. > I fixed this one locally, I can confirm that the .eln filenames are no longer truncated (as far as I can tell). > but =E2=80=98uniquify=E2=80=99 remains byte-compiled for no explainable r= eason. And too that as of v8 patch, uniquify still isn't natively-compiled. However, if you unload it and then reload it, it becomes natively-compiled. #+begin_src bash emacs --batch --eval "(message \"%s\" (progn (unload-feature 'uniquify) (= require 'uniquify) (take 1 (split-string (substring-no-properties (describe= -function 'uniquify-item-p)) \"\\n\" t))))" #+end_src #+RESULTS: : Type q in help window to delete it : (uniquify-item-p is a native-compiled Lisp function in `uniquify.el'.) I think the issue is because uniquify (along with some others such as prog-mode, backquote etc that I tested) are preloaded in Emacs. I believe that these preloaded packages need to be treated specially. In a non-Guix system, these preloaded packages have their .eln files stored under something like /29.x-/preloaded/ , whereas in the v8 series there is no "preloaded" directory. Instead .eln files for packages such as uniquify, prog-mode, backquote etc. are in various locations: - uniquify :: /29.2-/uniquify.eln - prog-mode :: /29.2-/progmodes/prog-mode.eln - backquote :: /29.2-/emacs-lisp/backquote.eln I suspect that the code which does the preloading may need to be patched and/or the preloaded packages may need to have their .eln files generated under a preloaded sub-directory (similar to what happens in non-Guix systems). Below is a list of .eln files that exist in the preloaded sub-directory in Emacs 29.1 on a non-Guix system. It's possible that the set of preloaded packages on Emacs 29.2 is different. I suspect that all of these packages are similarly affected. #+begin_example abbrev.eln backquote.eln bindings.eln buff-menu.eln burmese.eln button.eln byte-run.eln case-table.eln cconv.eln cham.eln characters.eln chinese.eln cl-generic.eln cl-preloaded.eln common-win.eln composite.eln cp51932.eln cus-face.eln cus-start.eln custom.eln cyrillic.eln czech.eln debug-early.eln disp-table.eln dnd.eln dos-fns.eln dos-vars.eln dos-w32.eln dynamic-setting.eln easymenu.eln ediff-hook.eln eldoc.eln electric.eln elisp-mode.eln english.eln env.eln epa-hook.eln ethiopic.eln eucjp-ms.eln european.eln faces.eln files.eln fill.eln float-sup.eln font-core.eln font-lock.eln fontset.eln format.eln frame.eln fringe.eln georgian.eln greek.eln haiku-win.eln hebrew.eln help.eln image.eln indent.eln indian.eln indonesian.eln internal.eln isearch.eln iso-transl.eln japanese.eln jit-lock.eln jka-cmpr-hook.eln keymap.eln khmer.eln korean.eln lao.eln lisp.eln lisp-mode.eln ls-lisp.eln macroexp.eln map-ynp.eln menu-bar.eln minibuffer.eln misc-lang.eln mouse.eln mule.eln mule-cmds.eln mule-conf.eln mule-util.eln mwheel.eln nadvice.eln newcomment.eln ns-win.eln obarray.eln oclosure.eln page.eln paragraphs.eln paren.eln pc-win.eln pgtk-dnd.eln pgtk-win.eln philippine.eln prog-mode.eln regexp-opt.eln register.eln replace.eln rfn-eshadow.eln rmc.eln romanian.eln scroll-bar.eln select.eln seq.eln shorthands.eln simple.eln sinhala.eln slovak.eln startup.eln subr.eln syntax.eln tab-bar.eln tabulated-list.eln tai-viet.eln text-mode.eln thai.eln tibetan.eln timer.eln tool-bar.eln tooltip.eln tty-colors.eln ucs-normalize.eln uniquify.eln utf-8-lang.eln vc-hooks.eln version.eln vietnamese.eln w32-fns.eln w32-vars.eln w32-win.eln widget.eln window.eln x-dnd.eln x-win.eln #+end_example --=20 Suhail This email is not an offer capable of acceptance, does not evidence an intention to enter into an agreement, has no operative effect until a definitive agreement is signed in writing by both parties, and that no party should act in reliance on the email or any representations of the sender until a definitive agreement is signed in writing by both parties.