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#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el Date: Fri, 18 Nov 2022 16:24:21 +0200 Message-ID: <834juwbasq.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59358@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 18 15:25:15 2022 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 1ow2It-0004jh-Px for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Nov 2022 15:25:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow2Il-0000pS-Rk; Fri, 18 Nov 2022 09:25:07 -0500 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 1ow2Ii-0000pF-7k for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 09:25:06 -0500 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 1ow2Ig-0001xI-Bo for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 09:25:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ow2If-0000zu-UX for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 09:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2022 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59358 X-GNU-PR-Package: emacs Original-Received: via spool by 59358-submit@debbugs.gnu.org id=B59358.16687814673783 (code B ref 59358); Fri, 18 Nov 2022 14:25:01 +0000 Original-Received: (at 59358) by debbugs.gnu.org; 18 Nov 2022 14:24:27 +0000 Original-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 Original-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 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 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==; 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 1ow2Hx-0005kC-Aq; Fri, 18 Nov 2022 09:24:17 -0500 In-Reply-To: (message from Juanma Barranquero on Fri, 18 Nov 2022 14:17:36 +0100) 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:248243 Archived-At: > 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.