From unknown Tue Jun 17 01:27:20 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#59424 <59424@debbugs.gnu.org> To: bug#59424 <59424@debbugs.gnu.org> Subject: Status: Native compiler cannot compile .emacs Reply-To: bug#59424 <59424@debbugs.gnu.org> Date: Tue, 17 Jun 2025 08:27:20 +0000 retitle 59424 Native compiler cannot compile .emacs reassign 59424 emacs submitter 59424 Juanma Barranquero severity 59424 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 18 08:18:21 2022 Received: (at submit) by debbugs.gnu.org; 18 Nov 2022 13:18:21 +0000 Received: from localhost ([127.0.0.1]:35749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow1G9-0003A9-EJ for submit@debbugs.gnu.org; Fri, 18 Nov 2022 08:18:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:52434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow1G7-0003A0-2Z for submit@debbugs.gnu.org; Fri, 18 Nov 2022 08:18:19 -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 1ow1G6-0001ew-1p for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 08:18:18 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ow1G3-0007VC-3L for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 08:18:16 -0500 Received: by mail-ej1-x62f.google.com with SMTP id vv4so3659413ejc.2 for ; Fri, 18 Nov 2022 05:18:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=879SjR9ajk8eCKbqoShmhdlbSbxDZFsQti6LxNMEIXE=; b=Es+NX+i3QkTt47SYcs2U/HPGPeFR4kYcp95dUBNLowFhlMibBkQv7nIq9M0DZSOAAj nfCxUcY0jLIvlUHHrbeoKI+EebE41JzjaFfR+Lrx3v2xbDs2OcoMU65kACNyPVw17iS0 Q6z4aPHyYTTGIkH5pkedeEpC6T4XGwHPI3yCL1p93IRovERuEtnJ0+iA6Rou0EUrGeCu ySrwi7nngBu/1QO5WzWhHtVkk88KAsnSLwc39uvL5ddCppf2kJ1/P9MbMxdQpv720Rho tIVAyMpJQUHbIk0CeDyVdMTephPD0cMLrZRapyn45YDNW4cyVJkvQhCwuFPTeCLoTzPE 7/YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=879SjR9ajk8eCKbqoShmhdlbSbxDZFsQti6LxNMEIXE=; b=iFrIGNJ4MtQa59jc33X6hL+Wfkb+ZI58oieil+FFZZGKEyMJVQG1Zr8o2q7J0AyL5g u8oVW5gwq7JF7jQ818jbngJW6V1ugVvsR/9FgrfusrawPWjlK85wbLxxhayIygJGvqt7 jdexAEIUNhhEXXVqgLScy6AFVi7kMbvOM9MsU/fWgwv65OF/yTwkVp696E2Y3kIbbCos lmETO3NZ9jPm4nyzt+LspOrB9bNvIrLu+YGHsccFmfZyoSSRjEKIQNwi+0Cvuw5EoKD8 G/npgUJ0yY+PGTRa9sk0dwdySVetSHCjXXadN48tOTOUhJDezsxfCyDEvgeKGOz0FQ3+ 9vQg== X-Gm-Message-State: ANoB5pkAXDUBTQ0apajBBJnQzJFeIx2Yxf4hk4BftUCvwnuTebkEQ1Re Eaj5fwFc/evPhOs6iDgEvoJIdKdksO5LTHwYOp8lp4xEZbQ= X-Google-Smtp-Source: AA0mqf4HZYOqtIqv6XxgcOSL9+reiDa9FmxM0TxdwxtO7N5INejjVTXXmlv9mKVcCZaOGotTXV33McyiP9Uq+0xdah0= X-Received: by 2002:a17:907:c24a:b0:7ac:2e16:bc31 with SMTP id tj10-20020a170907c24a00b007ac2e16bc31mr5870948ejc.242.1668777492944; Fri, 18 Nov 2022 05:18:12 -0800 (PST) MIME-Version: 1.0 From: Juanma Barranquero Date: Fri, 18 Nov 2022 14:17:36 +0100 Message-ID: Subject: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el To: Bug-Gnu-Emacs Content-Type: multipart/alternative; boundary="000000000000ad1d9705edbe8959" Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=lekktu@gmail.com; helo=mail-ej1-x62f.google.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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 (--) --000000000000ad1d9705edbe8959 Content-Type: text/plain; charset="UTF-8" If you use ~/.emacs instead of ~.emacs.d/init.el, and happen to compile .emacs, Emacs loads .emacs.elc (as it has always done), but the native compiler does *not* know how to compile it (because it does not know how to locate its source), so it gives a warning: 022-11-18 02:54:01+0100 Warning (comp): Cannot look up eln file as no source file was found for d:/Home/.emacs.elc and then it assigns the user-init-file to the native-compiled warnings.el, "d:/Home/.emacs.d/native/29.0.50-a4a10996/warnings-28e75f4d-02da775e.eln" which now, with the fix for bug#59334, ends up pointing to warnings.el: ELISP> user-init-file "d:/Devel/emacs/repo/trunk/lisp/emacs-lisp/warnings.el" --000000000000ad1d9705edbe8959 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

If you use ~/.emacs instead = of ~.emacs.d/init.el, and happen to compile .emacs, Emacs loads .emacs.elc = (as it has always done), but the native compiler does *not* know how to com= pile it (because it does not know how to locate its source), so it gives a = warning:


022-= 11-18 02:54:01+0100 Warning (comp): Cannot look up eln file as no source fi= le was found for d:/Home/.emacs.elc

and then it assigns th= e user-init-file to the native-compiled warnings.el,

"d:/Home/.emacs.d/native/29.0.50-a4a10996/warnings-28e75f4d-02da775e.eln"

which now, with the fix for bug#5= 9334, ends up pointing to warnings.el:

ELISP> user-in= it-file

"d:/Devel/emacs/repo/trunk/lisp/emacs-lisp/warnings.el"

--000000000000ad1d9705edbe8959-- From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 18 09:24:27 2022 Received: (at 59358) by debbugs.gnu.org; 18 Nov 2022 14:24:27 +0000 Received: from localhost ([127.0.0.1]:35943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow2I7-0000yx-Bz for submit@debbugs.gnu.org; Fri, 18 Nov 2022 09:24:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ow2I4-0000yi-AC for 59358@debbugs.gnu.org; Fri, 18 Nov 2022 09:24:25 -0500 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 1ow2Hy-0001uJ-TR; Fri, 18 Nov 2022 09:24:18 -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=88NOtMrGsAlgcPapwLQiG9r4G02GBh8Zg5KWb2N7WgI=; b=DSrAGKKL45Ax CtHy65txevbbP+8Zz2H2s5EEq2nYAtzMQPS49xJ07otSfCfHq1C+cxfocnRHIQnL8GTj/sm1uN8/t reLvhpUSmasfqzuBzDuQsTrPo4vdoRoon3/cnvI6ecLAzHkbyDLWo8gcBbxsgQuDdq4AvzdNQUHY7 RhnT/9D2vPKrqfDZvo9GGFooypZiNAUfZr6pUoCM3xvP3G8xJKYePX1a5hiXxELUAGLTzp1ZAPZzF 1UHY5q+Dp1iJVBcZ1XdOQpBewpBd3NEqgU7R6Qy4us6VhbmuG2oFA5BLBQEeevCVsYv2IcFztr/Nc tZFasv8ALefsG9mYErUEhg==; 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 1ow2Hx-0005kC-Aq; Fri, 18 Nov 2022 09:24:17 -0500 Date: Fri, 18 Nov 2022 16:24:21 +0200 Message-Id: <834juwbasq.fsf@gnu.org> From: Eli Zaretskii To: Juanma Barranquero In-Reply-To: (message from Juanma Barranquero on Fri, 18 Nov 2022 14:17:36 +0100) Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59358 Cc: 59358@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: -3.3 (---) > From: Juanma Barranquero > Date: Fri, 18 Nov 2022 14:17:36 +0100 > > If you use ~/.emacs instead of ~.emacs.d/init.el, and happen to compile .emacs, Emacs loads .emacs.elc > (as it has always done), but the native compiler does *not* know how to compile it (because it does not know > how to locate its source), so it gives a warning: > > 022-11-18 02:54:01+0100 Warning (comp): Cannot look up eln file as no source file was found for > d:/Home/.emacs.elc I think the solution to that is to special-case ".emacs", in maybe_swap_for_eln, as a file name that doesn't have to have the .el extension for this purpose. > and then it assigns the user-init-file to the native-compiled warnings.el, > > "d:/Home/.emacs.d/native/29.0.50-a4a10996/warnings-28e75f4d-02da775e.eln" > > which now, with the fix for bug#59334, ends up pointing to warnings.el: > > ELISP> user-init-file > "d:/Devel/emacs/repo/trunk/lisp/emacs-lisp/warnings.el" That is a separate bug, IMO. Is this because in Fload we set 'found' to the file name of warnings.el/.eln in this case? If so, we should prevent this nonsense. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 04:14:43 2022 Received: (at 59358) by debbugs.gnu.org; 19 Nov 2022 09:14:43 +0000 Received: from localhost ([127.0.0.1]:38993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owJvv-00033a-AX for submit@debbugs.gnu.org; Sat, 19 Nov 2022 04:14:43 -0500 Received: from mail-ej1-f45.google.com ([209.85.218.45]:43566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owJvt-00033M-BR for 59358@debbugs.gnu.org; Sat, 19 Nov 2022 04:14:42 -0500 Received: by mail-ej1-f45.google.com with SMTP id m22so18325143eji.10 for <59358@debbugs.gnu.org>; Sat, 19 Nov 2022 01:14:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=07Rso/ehog1INZhA0LGVe1c1ZWZ7nsJqdKNIPH9CudQ=; b=cEj2pWN/bV19feycexRCCdIK1Sde8+EwLJ3zlkmu4xG5Yc7dnIx1TL4pf+Mt/zsNXd e85skRL3XLFXnKEy3h2VqOc6RPZsZdBPqEb3m2lP94XXuqGGGb7GctKXFBumVO6H4J+a d5d8R5lkBrHa5Nyy1xzn2IaRY96c2YTSElOeH4Wk9u/TkYFm5DkE9Co0GEqVDPwxNfFJ NFrd1lykH6TH1v6OLr7arKbxQARGpvjcrwTNhBaAjIqvzZkThFiNnSrJH8dj42yVSkI3 3rPh6/o91rUBpK+7Bt+iS5h4mTkIIpQaqpv+VKI2fi312p1VJ/OHHt5aUqc7WJbGCW1O TstQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=07Rso/ehog1INZhA0LGVe1c1ZWZ7nsJqdKNIPH9CudQ=; b=ucwRyhtLboEQpG0hr8PdGSvIvsCKIqet6is8zjTTJO2GzSzXbM1QrplvHb2VHFje5s /Re9fI9inl5vREvo8NiFXTaWUwoQq9h3yWfXuIE1aggFJbq0k8weHgzfMokcjf1nvpy1 gzCPQVKkaMvArNKfSQnZnrBYHrLxVCxSzcMV/k9sQDaLbjhp19iKMTRCkvj0yaFsjFXO XxT4DAaUEUmuL42kvu2aGSK0Ol/rnCZMhifHP46YkJmPGoWpqvJqMtzy9GAun7scf5tW bjkyambizV/nF8zMUMQB4b98hXKyXwcax8y7IE6xItg/lDCYt+AsgiOTINy5HPEiVdm4 SV/w== X-Gm-Message-State: ANoB5pmIkPeSymMNFX8pAAt1EYmfers+jZlJhCzkwfjEsr55Xe1KHsCg ogT/zRfOFlLgYj9HMofreJzAVUfkvk8mcDbc4X0= X-Google-Smtp-Source: AA0mqf7ahygvkfR9jis8ovb3jWhBnRE7frdetGYn31/gomQDkUHkOU9HHjA1WdsmMTnV3y/zX/mikatU2viy0P6vfCI= X-Received: by 2002:a17:907:c24a:b0:7ac:2e16:bc31 with SMTP id tj10-20020a170907c24a00b007ac2e16bc31mr8808488ejc.242.1668849275264; Sat, 19 Nov 2022 01:14:35 -0800 (PST) MIME-Version: 1.0 References: <834juwbasq.fsf@gnu.org> In-Reply-To: <834juwbasq.fsf@gnu.org> From: Juanma Barranquero Date: Sat, 19 Nov 2022 10:13:58 +0100 Message-ID: Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000003c624f05edcf40dd" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59358 Cc: 59358@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: -1.0 (-) --0000000000003c624f05edcf40dd Content-Type: text/plain; charset="UTF-8" On Fri, Nov 18, 2022 at 3:24 PM Eli Zaretskii wrote: > That is a separate bug, IMO. Is this because in Fload we set 'found' > to the file name of warnings.el/.eln in this case? If so, we should > prevent this nonsense. > The bug is the consequence of maybe_swap_for_eln calling `display-warning', which initiates a recursive Fload while user-init-file is still t, so Fload "records" the current file name. The easiest fix in my view is to use delayed warnings and avoid the recursive Fload. diff --git i/src/lread.c w/src/lread.c index c28324dc35..2a57f72194 100644 --- i/src/lread.c +++ w/src/lread.c @@ -1742,10 +1742,13 @@ maybe_swap_for_eln (bool no_native, Lisp_Object *filename, int *fd, Qnil, Qnil))) return; - call2 (intern_c_string ("display-warning"), - Qcomp, - CALLN (Fformat, - build_string ("Cannot look up eln file as " - "no source file was found for %s"), - *filename)); + Vdelayed_warnings_list + = Fcons (list2 + (Qcomp, + CALLN (Fformat, + build_string ("Cannot look up eln " + "file as no source file " + "was found for %s"), + *filename)), + Vdelayed_warnings_list); return; } --0000000000003c624f05edcf40dd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdiBkaXI9Imx0ciI+PGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIg c3R5bGU9ImZvbnQtZmFtaWx5OmFyaWFsLHNhbnMtc2VyaWYiPjxicj48L2Rpdj48L2Rpdj48YnI+ PGRpdiBjbGFzcz0iZ21haWxfcXVvdGUiPjxkaXYgZGlyPSJsdHIiIGNsYXNzPSJnbWFpbF9hdHRy Ij5PbiBGcmksIE5vdiAxOCwgMjAyMiBhdCAzOjI0IFBNIEVsaSBaYXJldHNraWkgJmx0OzxhIGhy ZWY9Im1haWx0bzplbGl6QGdudS5vcmciIHRhcmdldD0iX2JsYW5rIj5lbGl6QGdudS5vcmc8L2E+ Jmd0OyB3cm90ZTo8YnI+PC9kaXY+PGRpdj7CoDwvZGl2PjxibG9ja3F1b3RlIGNsYXNzPSJnbWFp bF9xdW90ZSIgc3R5bGU9Im1hcmdpbjowcHggMHB4IDBweCAwLjhleDtib3JkZXItbGVmdDoxcHgg c29saWQgcmdiKDIwNCwyMDQsMjA0KTtwYWRkaW5nLWxlZnQ6MWV4Ij5UaGF0IGlzIGEgc2VwYXJh dGUgYnVnLCBJTU8uwqAgSXMgdGhpcyBiZWNhdXNlIGluIEZsb2FkIHdlIHNldCAmIzM5O2ZvdW5k JiMzOTs8YnI+DQp0byB0aGUgZmlsZSBuYW1lIG9mIHdhcm5pbmdzLmVsLy5lbG4gaW4gdGhpcyBj YXNlP8KgIElmIHNvLCB3ZSBzaG91bGQ8YnI+DQpwcmV2ZW50IHRoaXMgbm9uc2Vuc2UuPGJyPjwv YmxvY2txdW90ZT48ZGl2IGNsYXNzPSJnbWFpbF9kZWZhdWx0Ij48Zm9udCBmYWNlPSJhcmlhbCwg c2Fucy1zZXJpZiI+PC9mb250Pjxicj48Zm9udCBmYWNlPSJhcmlhbCwgc2Fucy1zZXJpZiI+VGhl IGJ1ZyBpcyB0aGUgY29uc2VxdWVuY2Ugb2YgbWF5YmVfc3dhcF9mb3JfZWxuIGNhbGxpbmcgYGRp c3BsYXktd2FybmluZyYjMzk7LCA8L2ZvbnQ+d2hpY2g8Zm9udCBmYWNlPSJhcmlhbCwgc2Fucy1z ZXJpZiI+wqBpbml0aWF0ZXMgYSByZWN1cnNpdmUgPC9mb250PkZsb2FkPGZvbnQgZmFjZT0iYXJp YWwsIHNhbnMtc2VyaWYiPsKgd2hpbGUgdXNlci1pbml0LWZpbGUgaXMgc3RpbGwgdCwgc28gRmxv YWQgJnF1b3Q7cmVjb3JkcyZxdW90OyB0aGUgY3VycmVudCBmaWxlIG5hbWUuPC9mb250Pjxicj48 YnI+PGZvbnQgZmFjZT0iYXJpYWwsIHNhbnMtc2VyaWYiPlRoZSBlYXNpZXN0IGZpeCBpbiBteSB2 aWV3IGlzIHRvIHVzZSBkZWxheWVkIHdhcm5pbmdzIGFuZCBhdm9pZCB0aGUgcmVjdXJzaXZlIDwv Zm9udD5GbG9hZC48YnI+PGJyPjxmb250IGZhY2U9Im1vbm9zcGFjZSI+ZGlmZiAtLWdpdCBpL3Ny Yy9scmVhZC5jIHcvc3JjL2xyZWFkLmM8L2ZvbnQ+PC9kaXY+PGZvbnQgZmFjZT0ibW9ub3NwYWNl Ij5pbmRleCBjMjgzMjRkYzM1Li4yYTU3ZjcyMTk0IDEwMDY0NDxicj4tLS0gaS9zcmMvbHJlYWQu Yzxicj4rKysgdy9zcmMvbHJlYWQuYzxicj5AQCAtMTc0MiwxMCArMTc0MiwxMyBAQCBtYXliZV9z d2FwX2Zvcl9lbG4gKGJvb2wgbm9fbmF0aXZlLCBMaXNwX09iamVjdCAqZmlsZW5hbWUsIGludCAq ZmQsPGJyPsKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IMKgIMKgIMKgIMKgIMKgIMKgIMKgUW5pbCwgUW5pbCkpKTxicj7CoCDCoCDCoCDCoCDCoCDCoCDC oCDCoCByZXR1cm47PGJyPi0gwqAgwqAgwqAgwqAgwqAgwqAgY2FsbDIgKGludGVybl9jX3N0cmlu ZyAoJnF1b3Q7ZGlzcGxheS13YXJuaW5nJnF1b3Q7KSw8YnI+LSDCoCDCoCDCoCDCoCDCoCDCoCDC oCDCoCDCoCDCoFFjb21wLDxicj4tIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgQ0FMTE4g KEZmb3JtYXQsPGJyPi0gwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgYnVp bGRfc3RyaW5nICgmcXVvdDtDYW5ub3QgbG9vayB1cCBlbG4gZmlsZSBhcyAmcXVvdDs8YnI+LSDC oCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDC oCAmcXVvdDtubyBzb3VyY2UgZmlsZSB3YXMgZm91bmQgZm9yICVzJnF1b3Q7KSw8YnI+LSDCoCDC oCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCAqZmlsZW5hbWUpKTs8YnI+KyDCoCDC oCDCoCDCoCDCoCDCoCBWZGVsYXllZF93YXJuaW5nc19saXN0PGJyPisgwqAgwqAgwqAgwqAgwqAg wqAgwqAgPSBGY29ucyAobGlzdDI8YnI+KyDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDC oCDCoChRY29tcCw8YnI+KyDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCBDQUxM TiAoRmZvcm1hdCw8YnI+KyDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDC oCDCoCDCoGJ1aWxkX3N0cmluZyAoJnF1b3Q7Q2Fubm90IGxvb2sgdXAgZWxuICZxdW90Ozxicj4r IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKg IMKgIMKgIMKgIMKgJnF1b3Q7ZmlsZSBhcyBubyBzb3VyY2UgZmlsZSAmcXVvdDs8YnI+KyDCoCDC oCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDCoCDC oCDCoCDCoCZxdW90O3dhcyBmb3VuZCBmb3IgJXMmcXVvdDspLDxicj4rIMKgIMKgIMKgIMKgIMKg IMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgIMKgKmZpbGVuYW1lKSksPGJyPisgwqAgwqAg wqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqAgwqBWZGVsYXllZF93YXJuaW5nc19saXN0KTs8YnI+ wqAgwqAgwqAgwqAgwqAgwqAgwqAgcmV0dXJuOzxicj7CoCDCoCDCoCDCoCDCoCDCoCB9PGJyPjwv Zm9udD48ZGl2IGNsYXNzPSJnbWFpbF9kZWZhdWx0Ij48YnI+PC9kaXY+PC9kaXY+PC9kaXY+DQo= --0000000000003c624f05edcf40dd-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 05:21:10 2022 Received: (at 59358) by debbugs.gnu.org; 19 Nov 2022 10:21:10 +0000 Received: from localhost ([127.0.0.1]:39073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owKyE-0004jJ-00 for submit@debbugs.gnu.org; Sat, 19 Nov 2022 05:21:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owKyA-0004iU-LQ for 59358@debbugs.gnu.org; Sat, 19 Nov 2022 05:21:09 -0500 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 1owKy5-0005He-2w; Sat, 19 Nov 2022 05:21:01 -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=sOC68jFBLgiw6IBxkqTTQq7CW+rBo67qLIWEd7qZbfU=; b=lXoN3Zg5O742 OhiJEArY7yInp+Q+8PDv1c166duLpmoEnn3SlsjKdJ1U4WXjBHUWn3i8y+P3Fpm5Mlqw9Qx1vBwVn nceV+mINEouVHIgXwkTBdRbIm1Iw87nlZDkPrqb6wsapo2WUrWMpSkMYMXdxpy5O2cVYmKQ4H0K6K gKOJaNL0KrBgNe90OBhyDHZ+LB8388D2n1pA7EGluap4oKgj2FKZOe4qTh14wmSkkhaR0TyKmOyQi Q/IPxwlmtYekx9RJ0E0Cj05QL75JdFHN/hc7QphWB4oWgYfh7hfdTn6sNIbDAcIYynrgshCcpytDy LIVE3ACZSx5GbMMfI8lolw==; 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 1owKy4-0004as-Bu; Sat, 19 Nov 2022 05:21:00 -0500 Date: Sat, 19 Nov 2022 12:21:06 +0200 Message-Id: <83wn7r8ctp.fsf@gnu.org> From: Eli Zaretskii To: Juanma Barranquero , Andrea Corallo In-Reply-To: (message from Juanma Barranquero on Sat, 19 Nov 2022 10:13:58 +0100) Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el References: <834juwbasq.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59358 Cc: 59358@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: -3.3 (---) > From: Juanma Barranquero > Date: Sat, 19 Nov 2022 10:13:58 +0100 > Cc: 59358@debbugs.gnu.org > > On Fri, Nov 18, 2022 at 3:24 PM Eli Zaretskii wrote: > > That is a separate bug, IMO. Is this because in Fload we set 'found' > to the file name of warnings.el/.eln in this case? If so, we should > prevent this nonsense. > > The bug is the consequence of maybe_swap_for_eln calling `display-warning', which initiates a recursive > Fload while user-init-file is still t, so Fload "records" the current file name. > > The easiest fix in my view is to use delayed warnings and avoid the recursive Fload. Fine by me. Andrea, do you agree? From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 20 13:59:58 2022 Received: (at 59358) by debbugs.gnu.org; 20 Nov 2022 18:59:58 +0000 Received: from localhost ([127.0.0.1]:44644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owpXp-0007DA-MI for submit@debbugs.gnu.org; Sun, 20 Nov 2022 13:59:57 -0500 Received: from mx.sdf.org ([205.166.94.24]:58459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owpXn-0007D0-QW for 59358@debbugs.gnu.org; Sun, 20 Nov 2022 13:59:56 -0500 Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 2AKIxsjA016953 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 20 Nov 2022 18:59:54 GMT From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el In-Reply-To: <83wn7r8ctp.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Nov 2022 12:21:06 +0200") References: <834juwbasq.fsf@gnu.org> <83wn7r8ctp.fsf@gnu.org> Date: Sun, 20 Nov 2022 18:59:54 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59358 Cc: Juanma Barranquero , 59358@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: -1.0 (-) Eli Zaretskii writes: >> From: Juanma Barranquero >> Date: Sat, 19 Nov 2022 10:13:58 +0100 >> Cc: 59358@debbugs.gnu.org >> >> On Fri, Nov 18, 2022 at 3:24 PM Eli Zaretskii wrote: >> >> That is a separate bug, IMO. Is this because in Fload we set 'found' >> to the file name of warnings.el/.eln in this case? If so, we should >> prevent this nonsense. >> >> The bug is the consequence of maybe_swap_for_eln calling >> `display-warning', which initiates a recursive >> Fload while user-init-file is still t, so Fload "records" the current file name. >> >> The easiest fix in my view is to use delayed warnings and avoid the >> recursive Fload. > > Fine by me. > > Andrea, do you agree? Agreed. Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 20 17:15:43 2022 Received: (at 59358-done) by debbugs.gnu.org; 20 Nov 2022 22:15:43 +0000 Received: from localhost ([127.0.0.1]:44831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owsbH-0003iy-37 for submit@debbugs.gnu.org; Sun, 20 Nov 2022 17:15:43 -0500 Received: from mail-ed1-f52.google.com ([209.85.208.52]:38434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owsbF-0003il-3Q for 59358-done@debbugs.gnu.org; Sun, 20 Nov 2022 17:15:41 -0500 Received: by mail-ed1-f52.google.com with SMTP id s12so13868461edd.5 for <59358-done@debbugs.gnu.org>; Sun, 20 Nov 2022 14:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=/ok8iJ4ahQ51Hn5u1Kn/S5O2+Ckf4aM0j7fRm0TPBBA=; b=RilAmamT7TNJ1O4wxygReLd/jtBnmGHTkow2XTDBVsWOoTlQ1K5udPOaotCA1QTmDb e463mvufdzc+lNvPOOZnouj4qWrLKjxiCq2FiVFW1noGtEG8TvsPGP6Ni74MLoYIkMah Teu7FlmgnT7/LwlqWZEM0ybFKcF0GNHD5RHTQITf1GaC05cpFjtKGlZUc9YtnHpxxnMZ e05vSbyNSRgK9Hd9YrIGmcljEUFxakVCQIs3L3yOncRCY91qglUXhszPdZQqPtTLJzMH ENWUG36SwhTZab6IyvmMgzJBRvUgdQls+ibHDBssW8QmyGQTCwaAugHJXkTYN+cmeVxf 1GkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/ok8iJ4ahQ51Hn5u1Kn/S5O2+Ckf4aM0j7fRm0TPBBA=; b=k7CDsX4U3GOurLg8Xo11g1Behv5+mKFMzNFAH4Kp1lKOLu7AGDF6xwtumIC/U+h5MR i4AysJtcxK0kd1hJWcQJBG+tJBwgb1w1P13IrD+vzsoysoOG9Ef2h4584eeO/gRrobOv PT6Btsyk4T5IM+ywz2cPw6Q9zYLpFPQddoLOzKJZMRvE1agJ/RJnn+iD/Xs90B+8u4ce E3ERRtle68bMjMr1MdG+6tI/GtCRB2Z6jbJW0vaU/dWI7paA8MoY2SgmPALPB4T1oQF+ HtFnrQMTsHjBSlOKsEzOM/4/HOWzBa17kXS7vY/xRSgeCWim1BqFuMrafai+dKI5HSoP kKzw== X-Gm-Message-State: ANoB5pkEJhp2ziroW1IPvqt4lzEdVdSUhVgnl0620iJp9qO7pOsAADD+ Ll2g4gW07N845CZjnr8lNWQqJ3cIkPfySueYo1/TT3wBvWQ= X-Google-Smtp-Source: AA0mqf5QsvJG59LzMl24MIjHVz+2LP6X/dqx9+Wce2RbUyHV0p9NKLB99lWdpEo7eWG+cdUFbZL9QJDsQbyPXJvtC/M= X-Received: by 2002:aa7:c055:0:b0:45a:1af2:ed6d with SMTP id k21-20020aa7c055000000b0045a1af2ed6dmr13454626edo.364.1668982534879; Sun, 20 Nov 2022 14:15:34 -0800 (PST) MIME-Version: 1.0 From: Juanma Barranquero Date: Sun, 20 Nov 2022 23:14:58 +0100 Message-ID: Subject: To: 59358-done@debbugs.gnu.org Content-Type: multipart/alternative; boundary="00000000000020be2005edee47c9" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The more serious bug is fixed with this commit: 8ec8decd9f of 2022-11-20 Avoid native compiler setting user-init-file to warnings.el (bug#59358) I'll open a new bug report with the first issue (the native compiler being unable to compile .emacs). Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lekktu[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.52 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.52 listed in list.dnswl.org] 0.0 HTML_MESSAGE BODY: HTML included in message 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: 59358-done 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: 1.0 (+) --00000000000020be2005edee47c9 Content-Type: text/plain; charset="UTF-8" The more serious bug is fixed with this commit: 8ec8decd9f of 2022-11-20 Avoid native compiler setting user-init-file to warnings.el (bug#59358) I'll open a new bug report with the first issue (the native compiler being unable to compile .emacs). --00000000000020be2005edee47c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The more serious bug is fixed with this commit:

8ec8decd9f=C2= =A0 of=C2=A0 2022-11-20
Avoid native compiler setting user-init-file to warni= ngs.el (bug#59358)

I'll open a new bug report with the first iss= ue (the native compiler being unable to compile .emacs).
--00000000000020be2005edee47c9-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 20 17:32:45 2022 Received: (at control) by debbugs.gnu.org; 20 Nov 2022 22:32:45 +0000 Received: from localhost ([127.0.0.1]:44852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owsrl-0004Ar-D2 for submit@debbugs.gnu.org; Sun, 20 Nov 2022 17:32:45 -0500 Received: from mail-ed1-f45.google.com ([209.85.208.45]:45764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owsrk-0004Ae-5s for control@debbugs.gnu.org; Sun, 20 Nov 2022 17:32:44 -0500 Received: by mail-ed1-f45.google.com with SMTP id s5so13857495edc.12 for ; Sun, 20 Nov 2022 14:32:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ezvrO8qkDB/+vBLEs2votUQ7FtBScL46nUFDEsQceso=; b=LKcceqrCuVeeWnDGG+BAWC/Wt55WsYR0TJJmCenLhaJwDUOS5e1ps1SyOPvD4XPtq3 3281CK+rH0DFJJ6fCHYrPhDhedxq3LS5E+9xq/gB6XXNypKOP55eg/AlujnZBUMgJhhU Wt+z+bgN83dl2fRXZrgGtgND4RSenDmAOZfalUEEQoRTnmzkgB7/jhgTS6jjt1iMBemM keiYHzFZUuDcRj1qPRN8Me2ahdnhiTBraZTQlYWApV2lDWnEICMB2+f7tcP4lN2Dts8j Mrd6KNdXVKPjXRc7Koraho05hqlF7PbNLL+jMagX0DDrQuYJB9NCZH5kIoD4cpP12u+Y mqeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ezvrO8qkDB/+vBLEs2votUQ7FtBScL46nUFDEsQceso=; b=AhnTislPq5QsMZDDGq1fAa7uAWkKnYFzj4N2SPisnHFDm70/vOrQZxmuxKBZ5ViXPN WrUilEBtpSkQoYCW9cuix0H/vhDxmEesCceTlcA9veAypmrcJdN8lR2+wsq1SSdiHLyy gYJQVDiUj303cuOcV9gfoESwhuupAQ1BW7n7aVQWiEtudYqKWL6bmShay8xnX8tV0vjK uzGyAYRE7CtfsT5e8wyi1RtAn8MC4B4o0eK9AuBEgGMababZkTa97s2f4ZkqGhI//wcD TsQ5qNb/wILtSwFFbP+fZJMcSp0r4u2Gp1u9u8sVffQ4gc0CHmwzKYtQlZXhWPUtZCnB D8qg== X-Gm-Message-State: ANoB5pkRqxsrhgOxwkOwKwmFhWkC/C7fB4Y4PNSRC1PT1sr415rs0mRX rEbs9zsTKs2UVuww6dSFcLNbj5FhpNrm1dDCZNjy+ass X-Google-Smtp-Source: AA0mqf7Z0vdkRpVcw9mHAAQkLeG5qJb335o9DyIwPr8fDz+HmBs/zFDdUflzBkjWvsGnvVXKVSNjfwg4Om4MD36KlvA= X-Received: by 2002:a05:6402:f01:b0:459:9dd3:2217 with SMTP id i1-20020a0564020f0100b004599dd32217mr5068298eda.163.1668983557854; Sun, 20 Nov 2022 14:32:37 -0800 (PST) MIME-Version: 1.0 From: Juanma Barranquero Date: Sun, 20 Nov 2022 23:32:01 +0100 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: multipart/alternative; boundary="0000000000001a1b1605edee84a5" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: clone 59358 -1 retitle -1 Native compiler cannot compile .emacs quit clone 59358 -1 retitle -1 Native compiler cannot compile .emacs quit Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.45 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lekktu[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.45 listed in wl.mailspike.net] 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: control 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: 1.0 (+) --0000000000001a1b1605edee84a5 Content-Type: text/plain; charset="UTF-8" clone 59358 -1 retitle -1 Native compiler cannot compile .emacs quit --0000000000001a1b1605edee84a5 Content-Type: text/html; charset="UTF-8"
clone 59358 -1
retitle -1 Native compiler cannot compile .emacs
quit
--0000000000001a1b1605edee84a5-- From unknown Tue Jun 17 01:27:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Fri, 25 Nov 2022 19:21:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 14:02:10 2022 Received: (at 59424) by debbugs.gnu.org; 27 Nov 2022 19:02:10 +0000 Received: from localhost ([127.0.0.1]:43681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozMuo-000808-CU for submit@debbugs.gnu.org; Sun, 27 Nov 2022 14:02:10 -0500 Received: from mail-ed1-f52.google.com ([209.85.208.52]:46009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozMum-000802-7K for 59424@debbugs.gnu.org; Sun, 27 Nov 2022 14:02:08 -0500 Received: by mail-ed1-f52.google.com with SMTP id s5so12769393edc.12 for <59424@debbugs.gnu.org>; Sun, 27 Nov 2022 11:02:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rxcVj69XTyHx0EEnn0hiBVnYIrEMOzvsrxwMb9tRxwQ=; b=kEzXN9umzPvdESuuDX/HfDBKhCZDuPdA7MO/yXH/EGPW0IfWk4j8gpmDsIB9rhycxL 0yuzReRTaeD5RsgPZG9i9C0JHmeWP1ubZnx5gsiJN5qY/QTk40/ADdn8g21QG5StVm3i 5PoQlM/Cl/2w8MKaNNyE8bqSR8qhc0Y7TTAs9JAiP80KJ3EqM9A7QUvHFFeGhQi2MqoC f8+slcOwrjqyTpcSZ1XUdHQ4OK0R65JE4sSAdJmgsHRDBsUEKisEc6I8KGwXkCaihtsQ PMeKMiHkqeW7CsatYnYfz4HknaQtE+OGqVUH/BQEn89VhL4IFmL9B2DwfzqrtFm4l1cs GeLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rxcVj69XTyHx0EEnn0hiBVnYIrEMOzvsrxwMb9tRxwQ=; b=S0tGlotQCqjvf5nTjoyhJsMyN32eiEyjb6ICHWfAsdRIx2a0nWaOv1FywSO9nlcrMP hpX1JCWOMewhXFSdyEjUFxYY+UvnHbeeWo45mQivBvugBG0FdZcBD4ziIjAhbJXy0VFt EWwA/j+kqjLIIvZ06E78OiipOy2z4JsA1fJJNjLvh8jEJx2XDEPHn+EtqahY2ZYoeJBD 1I44UoTpg+Ik5vSEc/8Vzm6djQjqnCrnxjxIjfc3Q4bAhI+F4+EshC9eVXs9fCTcHe/F 7UIvtMlGR1PHPrpylLXyRpfytq5+R6LApesh8zzKe2ErZSigrK8tWm4lgIxUja8r1gVY KD3A== X-Gm-Message-State: ANoB5plK8cXL4r45KHgfjORbd9INwb2p+P9gZjh22M3apCJdEbiOfdPl 6a0JSa3LgZ4oWJHASiLl+lHWci9X/sz0i7Qj+po= X-Google-Smtp-Source: AA0mqf5q5MyPDRsEokJ5uXXp4uJrMGU6cbbHaj0hbkZAvgUNQjIIl9QVvApscE7BbPrUKdL4ETKsNedCP8NJlmQdOp4= X-Received: by 2002:a05:6402:444c:b0:462:2e27:3bf2 with SMTP id o12-20020a056402444c00b004622e273bf2mr44671114edb.13.1669575722089; Sun, 27 Nov 2022 11:02:02 -0800 (PST) MIME-Version: 1.0 References: <834juwbasq.fsf@gnu.org> In-Reply-To: <834juwbasq.fsf@gnu.org> From: Juanma Barranquero Date: Sun, 27 Nov 2022 20:01:25 +0100 Message-ID: Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el To: Eli Zaretskii , Andrea Corallo Content-Type: multipart/alternative; boundary="000000000000d745d105ee7863e3" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59424 Cc: 59424@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: -1.0 (-) --000000000000d745d105ee7863e3 Content-Type: text/plain; charset="UTF-8" On Fri, Nov 18, 2022 at 3:24 PM Eli Zaretskii wrote: > I think the solution to that is to special-case ".emacs", in > maybe_swap_for_eln, as a file name that doesn't have to have the .el > extension for this purpose. > I've been fiddling with maybe_swap_for_eln for a while to try to special-case .emacs and make comp native-compile it, but I reached a point where it was getting a bit out of hand in the kludgey department. I think that's better implemented by someone more knowledgeable with the native-compiler machinery. --000000000000d745d105ee7863e3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


<= div dir=3D"ltr" class=3D"gmail_attr">On Fri, Nov 18, 2022 at 3:24 PM Eli Za= retskii <eliz@gnu.org> wrote:
=
=C2=A0
I = think the solution to that is to special-case ".emacs", in
maybe_swap_for_eln, as a file name that doesn't have to have the .el extension for this purpose.

I've been fiddling = with maybe_swap_for_eln for a while to try to special-case .emacs and make = comp native-compile it, but I reached a point where it was getting a bit ou= t of hand in the kludgey=C2=A0department.

I think that's better = implemented by someone more knowledgeable with the native-compiler machiner= y.
--000000000000d745d105ee7863e3-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 14:25:57 2022 Received: (at 59424) by debbugs.gnu.org; 27 Nov 2022 19:25:57 +0000 Received: from localhost ([127.0.0.1]:43813 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozNHo-0008Co-Nr for submit@debbugs.gnu.org; Sun, 27 Nov 2022 14:25:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozNHm-0008Ci-RE for 59424@debbugs.gnu.org; Sun, 27 Nov 2022 14:25:55 -0500 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 1ozNHe-0001fv-66; Sun, 27 Nov 2022 14:25:46 -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=miOxKyWwcbzGvrZB96dzOu9M7XJzZ+zl5i0PK4KMD18=; b=Kgn0nB8rq9Tc N157+I49hlO/l2nsKbDxh26A/jwl3xPQJxpL8gZUWW0NSy/IFhVDgtCYwswZWFcZizl1StSTXvVlP EJyJVbqjF29MEYOTp6SRDU2rdg7Io1U9PHC/52FEw3QYLHyELmS+EtHVSZh1fxx/lLtoE952HBGbc jDf2QqNLOgDqFLYHZO7g8BX/KTuCnM8pRKQGcRz3uDffZ0Xf70e92O0zgRLpJ3XH4HOHh6KwcGQ0Q LK3R/aDYWO3ArXDgMgqcsL8iCb7h3k2F5rGpywi/X//5OrrQjbEnfYmuV5W80q6xFUKcpmR/1s2CG JIc/MGrlPzbqwK6oNoz6ug==; 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 1ozNHc-0001S5-M0; Sun, 27 Nov 2022 14:25:45 -0500 Date: Sun, 27 Nov 2022 21:26:11 +0200 Message-Id: <838rjwp5bg.fsf@gnu.org> From: Eli Zaretskii To: Juanma Barranquero In-Reply-To: (message from Juanma Barranquero on Sun, 27 Nov 2022 20:01:25 +0100) Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el References: <834juwbasq.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59424 Cc: 59424@debbugs.gnu.org, akrl@sdf.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: -3.3 (---) > From: Juanma Barranquero > Date: Sun, 27 Nov 2022 20:01:25 +0100 > Cc: 59424@debbugs.gnu.org > > On Fri, Nov 18, 2022 at 3:24 PM Eli Zaretskii wrote: > > I think the solution to that is to special-case ".emacs", in > maybe_swap_for_eln, as a file name that doesn't have to have the .el > extension for this purpose. > > I've been fiddling with maybe_swap_for_eln for a while to try to special-case .emacs and make comp > native-compile it, but I reached a point where it was getting a bit out of hand in the kludgey department. > > I think that's better implemented by someone more knowledgeable with the native-compiler machinery. I'm probably missing something, because it looks like this is the place to do it: /* Search eln in the eln-cache directories. */ Lisp_Object eln_path_tail = Vnative_comp_eln_load_path; Lisp_Object src_name = Fsubstring (*filename, Qnil, make_fixnum (-1)); <<<<<<<<<<<<<<<< The idea is to use Fsubstring (*filename, Qnil, make_fixnum (-3)) instead of the above if '*filename' ends in ".emacs.elc" (which you can establish by using the same suffix_p that is used above this code to verify the ".elc" extension). But since you say there's more here than meets the eye, I'm wondering what did I miss? From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 14:54:11 2022 Received: (at 59424) by debbugs.gnu.org; 27 Nov 2022 19:54:11 +0000 Received: from localhost ([127.0.0.1]:43920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozNj9-0008Rz-DE for submit@debbugs.gnu.org; Sun, 27 Nov 2022 14:54:11 -0500 Received: from mail-ed1-f42.google.com ([209.85.208.42]:37635) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozNj7-0008Rs-3q for 59424@debbugs.gnu.org; Sun, 27 Nov 2022 14:54:09 -0500 Received: by mail-ed1-f42.google.com with SMTP id l11so12934156edb.4 for <59424@debbugs.gnu.org>; Sun, 27 Nov 2022 11:54:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IQHhrM3sxkeMMfQtRTqUgXTBybr2+tHXuj4wbUt9V84=; b=pnMXUvJzidaYiHU5OLRcwDoHM3RVxba6jlHBM56/KVo8tt6oN/yCYOloW6f6G9mxIK yOU6QM/jATBKqHhw/Rh4bqgEsBEVT6pdUI/uW/cUVpgVDHuBC9YjVSsa4AP7IHKbMq0U gVSR4Gwd9ch1vhBRzb9HJQtO3LmUWU29WW703y6DqhrEUDCY40t4SHSvq+Y9pgu1VuKE lapEBq4PoU2yA6fkqdDKH9iwf0r41vV5CdShghJfjWRSnfrwR4B8/HJoq2a09lGLCwpK QTC87DUbj78/KwxuAMEMxSVPMrAVEBG+yidlBOo5Vb7oJKnFVv4xZ0Aum9EQcl6+8yxs 04hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IQHhrM3sxkeMMfQtRTqUgXTBybr2+tHXuj4wbUt9V84=; b=hwYcMMuZsgM6RCjSDkXnJ7nhp5Ox8lNh9VCBTeMokxyB0fBBnsFFeZJgIJTBZYCPNw PlPEgqqtSE/VoQai+6CH9yVTcnIkLxJKh6vcYGPHdIJXmIqPAWoJ683BrzCbSLZJZRW9 WgiemLOW2q5GRhfIUjT2kCohX5j7y5SzS2jzgmjwco1MH6XYj6kS1i2v9BN48PXK7xE+ rneGeoHKjyr8ma5Jpqq5PU23z2wHO0g2nmcXvszky1hUHaqsNa2C1RBR5EKDNrD1yRLb RUnIBS12ANyUcTaDWbpwmvu1K15jgC9dJVcxinE5PMI3AuWsquxC379M3sjcKrIAcvXL tUjQ== X-Gm-Message-State: ANoB5pml9cNt2JD1w1ByRVFlU6j5iHm6tpHC6RNi5DGrE8qyu55FNGXQ nnfjq/Flr/E2hT0F3K7vnUXvsCcxje/DgfJ/Ztc= X-Google-Smtp-Source: AA0mqf4+uz09nmb18qw3hff2qwTRVje/+D65xfNWQC6VJJnpEXM+5D2u6YgOjx2s4BZBqMKIj5kL5vO4GL3I213oyJo= X-Received: by 2002:a05:6402:f01:b0:459:9dd3:2217 with SMTP id i1-20020a0564020f0100b004599dd32217mr35435044eda.163.1669578843040; Sun, 27 Nov 2022 11:54:03 -0800 (PST) MIME-Version: 1.0 References: <834juwbasq.fsf@gnu.org> <838rjwp5bg.fsf@gnu.org> In-Reply-To: <838rjwp5bg.fsf@gnu.org> From: Juanma Barranquero Date: Sun, 27 Nov 2022 20:53:27 +0100 Message-ID: Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000dd309505ee791d8c" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59424 Cc: 59424@debbugs.gnu.org, akrl@sdf.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: -1.0 (-) --000000000000dd309505ee791d8c Content-Type: text/plain; charset="UTF-8" This patch below is what I did, *just* to get comp not to complain about the "missing" .emacs.el. Then something should be done to make it to compile .emacs, and I'm not sure where or how. I can't shake the feeling that I'm thrashing around and someone who knows the code could do it faster and cleaner. diff --git i/src/comp.c w/src/comp.c index b6072a866e..a8e67bbeb2 100644 --- i/src/comp.c +++ w/src/comp.c @@ -4473,7 +4473,10 @@ DEFUN ("comp-el-to-eln-rel-filename", Fcomp_el_to_eln_rel_filename, Lisp_Object separator = build_string ("-"); Lisp_Object path_hash = comp_hash_string (filename); - filename = concat2 (Ffile_name_nondirectory (Fsubstring (filename, Qnil, - make_fixnum (-3))), - separator); + if (suffix_p (filename, ".emacs")) + filename = concat2 (Ffile_name_nondirectory (filename), separator); + else + filename = concat2 (Ffile_name_nondirectory (Fsubstring (filename, Qnil, + make_fixnum (-3))), + separator); Lisp_Object hash = concat3 (path_hash, separator, content_hash); return concat3 (filename, hash, build_string (NATIVE_ELISP_SUFFIX)); diff --git i/src/lread.c w/src/lread.c index 0a6e4201e4..b0b08ba872 100644 --- i/src/lread.c +++ w/src/lread.c @@ -1716,7 +1716,10 @@ maybe_swap_for_eln (bool no_native, Lisp_Object *filename, int *fd, Fremhash (*filename, V_comp_no_native_file_h); - if (no_native - || load_no_native - || !suffix_p (*filename, ".elc")) + if (no_native || load_no_native) + return; + + bool _emacs = suffix_p (*filename, ".emacs.elc"); + + if (!_emacs && !suffix_p (*filename, ".elc")) return; @@ -1724,5 +1727,5 @@ maybe_swap_for_eln (bool no_native, Lisp_Object *filename, int *fd, Lisp_Object eln_path_tail = Vnative_comp_eln_load_path; Lisp_Object src_name = - Fsubstring (*filename, Qnil, make_fixnum (-1)); + Fsubstring (*filename, Qnil, make_fixnum (_emacs ? -4 : -1)); if (NILP (Ffile_exists_p (src_name))) { --000000000000dd309505ee791d8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This patch below is what I did, *just* to get comp not to complain a= bout the "missing" .emacs.el.

Then something should be don= e to make it to compile .emacs, and I'm not sure where or how.

I= can't shake=C2=A0the feeling that I'm thrashing around and someone= who knows the code could do it faster and cleaner.


diff --git i= /src/comp.c w/src/comp.c
index b6072a866e..a8e67bbeb2 100644
--- i/sr= c/comp.c
+++ w/src/comp.c
@@ -4473,7 +4473,10 @@ DEFUN ("comp-el= -to-eln-rel-filename", Fcomp_el_to_eln_rel_filename,
=C2=A0 =C2=A0L= isp_Object separator =3D build_string ("-");
=C2=A0 =C2=A0Lisp= _Object path_hash =3D comp_hash_string (filename);
- =C2=A0filename =3D = concat2 (Ffile_name_nondirectory (Fsubstring (filename, Qnil,
- = =C2=A0 make_fixnum (-3))),
- =C2=A0 =C2=A0 =C2=A0separator);
+ =C2= =A0if (suffix_p (filename, ".emacs"))
+ =C2=A0 =C2=A0filename = =3D concat2 (Ffile_name_nondirectory (filename), separator);
+ =C2=A0els= e
+ =C2=A0 =C2=A0filename =3D concat2 (Ffile_name_nondirectory (Fsubstri= ng (filename, Qnil,
+ =C2=A0 =C2=A0 make_fixnum (-3))),
+ se= parator);
=C2=A0 =C2=A0Lisp_Object hash =3D concat3 (path_hash, separato= r, content_hash);
=C2=A0 =C2=A0return concat3 (filename, hash, build_str= ing (NATIVE_ELISP_SUFFIX));
diff --git i/src/lread.c w/src/lread.c
in= dex 0a6e4201e4..b0b08ba872 100644
--- i/src/lread.c
+++ w/src/lread.c=
@@ -1716,7 +1716,10 @@ maybe_swap_for_eln (bool no_native, Lisp_Object = *filename, int *fd,
=C2=A0 =C2=A0 =C2=A0Fremhash (*filename, V_comp_no_n= ative_file_h);
=C2=A0
- =C2=A0if (no_native
- =C2=A0 =C2=A0 =C2=A0= || load_no_native
- =C2=A0 =C2=A0 =C2=A0|| !suffix_p (*filename, ".= elc"))
+ =C2=A0if (no_native || load_no_native)
+ =C2=A0 =C2=A0r= eturn;
+
+ =C2=A0bool _emacs =3D suffix_p (*filename, ".emacs.el= c");
+
+ =C2=A0if (!_emacs && !suffix_p (*filename, &quo= t;.elc"))
=C2=A0 =C2=A0 =C2=A0return;
=C2=A0
@@ -1724,5 +1727= ,5 @@ maybe_swap_for_eln (bool no_native, Lisp_Object *filename, int *fd,=C2=A0 =C2=A0Lisp_Object eln_path_tail =3D Vnative_comp_eln_load_path;=C2=A0 =C2=A0Lisp_Object src_name =3D
- =C2=A0 =C2=A0Fsubstring (*filen= ame, Qnil, make_fixnum (-1));
+ =C2=A0 =C2=A0Fsubstring (*filename, Qnil= , make_fixnum (_emacs ? -4 : -1));
=C2=A0 =C2=A0if (NILP (Ffile_exists_p= (src_name)))
=C2=A0 =C2=A0 =C2=A0{

--000000000000dd309505ee791d8c-- From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 15:26:41 2022 Received: (at 59424) by debbugs.gnu.org; 27 Nov 2022 20:26:41 +0000 Received: from localhost ([127.0.0.1]:44054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozOEa-0000Gm-SW for submit@debbugs.gnu.org; Sun, 27 Nov 2022 15:26:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34416) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozOEZ-0000Gg-Ba for 59424@debbugs.gnu.org; Sun, 27 Nov 2022 15:26:40 -0500 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 1ozOEO-0001kD-Ih; Sun, 27 Nov 2022 15:26:31 -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=LPTkVDEuhyVhO2gh+dD56iIcK30iST3k8NZyWyQsdqM=; b=UTB1DL3RX6Gk KvO8nrEPOQ9fMoHuzcnj958WYQQmIsqbeVZWlQ0m9h8HVqga66/5IkrqNx0l1jAtsJDS1D1d3ZZsx JWg6CD56+SkhUyeX6Ntrkn0UMwNx2Fx4iN+xz/EBar9Vtlm7UScAIbzLD3VxJuS0lO+NgqLUamQxN LDnPfydESGKWccLNbxrgUbvkr4Udl8jDilB+ozc/VM2xkmd6rccQg+fWH4rULliON51WaoPa0L6L/ eHrRkA13Zhuduc2YpMiiNLaHREfd2XDz3QkSLPNDVZegmHoztwJF6JBm5TN4NrLIebF/mqZabMkRr cW/ebRd3IAReOdctWLzGNw==; 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 1ozOEN-0002Oo-FP; Sun, 27 Nov 2022 15:26:28 -0500 Date: Sun, 27 Nov 2022 22:26:55 +0200 Message-Id: <837czgp2i8.fsf@gnu.org> From: Eli Zaretskii To: Juanma Barranquero In-Reply-To: (message from Juanma Barranquero on Sun, 27 Nov 2022 20:53:27 +0100) Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el References: <834juwbasq.fsf@gnu.org> <838rjwp5bg.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59424 Cc: 59424@debbugs.gnu.org, akrl@sdf.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: -3.3 (---) > From: Juanma Barranquero > Date: Sun, 27 Nov 2022 20:53:27 +0100 > Cc: akrl@sdf.org, 59424@debbugs.gnu.org > > This patch below is what I did, *just* to get comp not to complain about the "missing" .emacs.el. > > Then something should be done to make it to compile .emacs, and I'm not sure where or how. So the problem is not to find the source of .emacs.elc, the problem is also to compile .emacs natively into .emacs.eln? I though the problem was only the former. > I can't shake the feeling that I'm thrashing around and someone who knows the code could do it faster and > cleaner. I'm not sure a cleaner way exists, but I will let Andrea chime in. Note that there's also maybe_defer_native_compilation. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 27 15:30:00 2022 Received: (at 59424) by debbugs.gnu.org; 27 Nov 2022 20:30:00 +0000 Received: from localhost ([127.0.0.1]:44071 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozOHo-0000IK-ET for submit@debbugs.gnu.org; Sun, 27 Nov 2022 15:30:00 -0500 Received: from mail-ed1-f45.google.com ([209.85.208.45]:45639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozOHn-0000IE-DH for 59424@debbugs.gnu.org; Sun, 27 Nov 2022 15:29:59 -0500 Received: by mail-ed1-f45.google.com with SMTP id s5so12942191edc.12 for <59424@debbugs.gnu.org>; Sun, 27 Nov 2022 12:29:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=at1PBwpEhCFke7lyBNysFsd7FDeLG64mjkzgtGthgPY=; b=l6D6TQzEeANR3gzQb3oCVk7xjExHh4SKeFoyvD4nI561rxhv9dinr8Xs+Z0OcCeUGP GwiD6f32oosgbIZFYNeOX/otNtkphMpYZ1yfDgjNZWVrZYz0xh0T+mCW1ZZ7fpWwwCD6 52Xcd/Xvh+qlI5cL+ckjtkV+iPra1BJI0foQwc7wbgEYX5pSBTbzR7HnxyF0eZrObrpD fPeaON2N33V7BnS4+uN8GORGrS0CxVyBHjjEnfYloO3WCiwf+e1eIPcpgxOzXDab8HwO nhGjpQt0O8cHTVnqQK625V5DAB7/CKZUN4mMgHgSbmKa555EwJSEGz3zQoqrfLhifSUM 9t+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=at1PBwpEhCFke7lyBNysFsd7FDeLG64mjkzgtGthgPY=; b=aqU/BoEp9PHfqT3VykfP9DQ8DDLNL5jAidqcQXQdqOUHuDJDfuQ/PuTfx39jxGOQE2 7I9QfJZZq0phF2pLd07aL1U7Mr1B4r84LL5EN2ObedVEJzWHWMPGNMsVguofQRPWugkF dr0CX7f96B19Uv1BEK2wfZEahVwk1F5ryEjGVU+oTulYgmqfdTY40uPXjMa8bK8jM1hZ panB866aHMdx9TFdfpy+Sc19xcaZhMIOzHzwGJGhyFsk3rC8GzyR6azRed5n4HXY5cKs KvyyYtw1cNxBD5TigggmVT0gtHT33WV/nwHoy+yjyKdLOs7ByK9uxPgUw+QXaWTA5H2i AlLQ== X-Gm-Message-State: ANoB5pkexSNj1naZuHQCaiFqF08UZrvkJH8j/r5EN5/t3NmHYtOmgT/N z2mI3Iz0mL2VTEUzHHic4z3CTtNKpPRf/0Daxpk= X-Google-Smtp-Source: AA0mqf6s4JuveTWkoYuSxbsswA//m1man6FVcBMY+Mq8G96Vwu5rdAWTuJcuxasye0+8UkCELlXgBya9mVUrYdIHwJQ= X-Received: by 2002:a05:6402:3214:b0:459:278b:7a8b with SMTP id g20-20020a056402321400b00459278b7a8bmr29946084eda.355.1669580993465; Sun, 27 Nov 2022 12:29:53 -0800 (PST) MIME-Version: 1.0 References: <834juwbasq.fsf@gnu.org> <838rjwp5bg.fsf@gnu.org> <837czgp2i8.fsf@gnu.org> In-Reply-To: <837czgp2i8.fsf@gnu.org> From: Juanma Barranquero Date: Sun, 27 Nov 2022 21:29:17 +0100 Message-ID: Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000000a115d05ee799e98" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59424 Cc: 59424@debbugs.gnu.org, akrl@sdf.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: -1.0 (-) --0000000000000a115d05ee799e98 Content-Type: text/plain; charset="UTF-8" Both: comp complains that it doesn't find .emacs.el; and it doesn't compile .emacs With my changes, it "knows" that the source should be .emacs, and it's able to generate a suitable name for it (a /path/to/.emacs-xxxxxxxx-yyyyyyyy.eln name in the hash). But it does not compile it. --0000000000000a115d05ee799e98 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Both: comp complains that it doesn't find .emacs.el; and it d= oesn't compile .emacs

With my changes, it "knows" tha= t the source should be .emacs, and it's able to generate a suitable nam= e for it (a /path/to/.emacs-xxxxxxxx-yyyyyyyy.eln name in the hash). But it= does not compile it.

--0000000000000a115d05ee799e98-- From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 28 08:58:12 2022 Received: (at 59424) by debbugs.gnu.org; 28 Nov 2022 13:58:12 +0000 Received: from localhost ([127.0.0.1]:48763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozeeB-0004as-W1 for submit@debbugs.gnu.org; Mon, 28 Nov 2022 08:58:12 -0500 Received: from mx.sdf.org ([205.166.94.24]:57476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozeeA-0004am-Am for 59424@debbugs.gnu.org; Mon, 28 Nov 2022 08:58:11 -0500 Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 2ASDw73N006994 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 28 Nov 2022 13:58:08 GMT From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el In-Reply-To: <837czgp2i8.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Nov 2022 22:26:55 +0200") References: <834juwbasq.fsf@gnu.org> <838rjwp5bg.fsf@gnu.org> <837czgp2i8.fsf@gnu.org> Date: Mon, 28 Nov 2022 13:58:07 +0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59424 Cc: Juanma Barranquero , 59424@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: -1.0 (-) Eli Zaretskii writes: >> From: Juanma Barranquero >> Date: Sun, 27 Nov 2022 20:53:27 +0100 >> Cc: akrl@sdf.org, 59424@debbugs.gnu.org >> >> This patch below is what I did, *just* to get comp not to complain about the "missing" .emacs.el. >> >> Then something should be done to make it to compile .emacs, and I'm not sure where or how. > > So the problem is not to find the source of .emacs.elc, the problem is also > to compile .emacs natively into .emacs.eln? I though the problem was only > the former. > >> I can't shake the feeling that I'm thrashing around and someone who knows the code could do it faster and >> cleaner. > > I'm not sure a cleaner way exists, but I will let Andrea chime in. > > Note that there's also maybe_defer_native_compilation. Hello all, yes I think Juanma you should have a look into 'maybe_defer_native_compilation'. This will be called when the first byte compiled function defined in your .emacs (if any) is being loaded. As you can see 'maybe_defer_native_compilation' tries to reconstruct the src filename, so I guess this need some tweaking for this specific case. Best Regards Andrea