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#59334: 29.0.50; loading native-compiled init file sets user-init-file to .eln Date: Fri, 18 Nov 2022 09:19:00 +0200 Message-ID: <83bkp4d923.fsf@gnu.org> References: <8335aheqct.fsf@gnu.org> <83wn7td6l0.fsf@gnu.org> <83fsehcpi2.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59334@debbugs.gnu.org, akrl@sdf.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 18 08:26:38 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 1ovvll-0008Sl-Fr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Nov 2022 08:26:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovvfi-00018T-5f; Fri, 18 Nov 2022 02:20:22 -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 1ovvfP-0000sr-A3 for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 02:20:05 -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 1ovvfO-0004RH-Vf for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 02:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovvfO-0003cX-Dn for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2022 02:20:02 -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 07:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59334 X-GNU-PR-Package: emacs Original-Received: via spool by 59334-submit@debbugs.gnu.org id=B59334.166875594613850 (code B ref 59334); Fri, 18 Nov 2022 07:20:02 +0000 Original-Received: (at 59334) by debbugs.gnu.org; 18 Nov 2022 07:19:06 +0000 Original-Received: from localhost ([127.0.0.1]:35096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovveT-0003bK-Mj for submit@debbugs.gnu.org; Fri, 18 Nov 2022 02:19:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovveR-0003ap-0o for 59334@debbugs.gnu.org; Fri, 18 Nov 2022 02:19:03 -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 1ovveL-0004I2-Of; Fri, 18 Nov 2022 02:18:57 -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=doVbu52NLj5a4fkR4OlMvXbhIS9HoRzAsguURx8VlzA=; b=X6xpAOeebPQC HmYEtVrjTCyOf76ItWBTKW7QWmLUzBs2YSzL22rS9KAzvbhGa0h02cv6ERS8dB8/+v6ouf7OUkX4k TJ/WOHfOBvXpnH3JgANyj2hqcCn9JPW6xCbuth5UF8gqrbCsEEso7M7grJaCP16MesLYrv3Yy389d +IfXuMlBpKFDv2zMwQ9n9mStAWRbMsMhVfcdF6ppKgaJUAWob5omXQJz12hyvSplwoITTfpa9SqC8 64fZwQL7TWhtBelO6WVOsj5D/hFbux6oawhGbaacej2cnXE7n7dg4wbPHkk5muGaylTcl3/Joc1kr Fs3iW0RGcdRXgxz+OJLO3A==; 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 1ovveL-00033V-7C; Fri, 18 Nov 2022 02:18:57 -0500 In-Reply-To: (message from Juanma Barranquero on Fri, 18 Nov 2022 03:25:34 +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:248173 Archived-At: > From: Juanma Barranquero > Date: Fri, 18 Nov 2022 03:25:34 +0100 > Cc: Andrea Corallo , 59334@debbugs.gnu.org > > 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 warnings.el! > > ELISP> user-init-file > "d:/Home/.emacs.d/native/29.0.50-a4a10996/warnings-28e75f4d-02da775e.eln" > > which, if my patch is installed, gets converted to its source file: > > ELISP> user-init-file > "d:/Devel/emacs/repo/trunk/lisp/emacs-lisp/warnings.el" > > So this is a double bug for anyone compiling their .emacs: they will always get a warning, and an erroneous > user-init-file. > > Do you want me to file this as a separate bug? Yes, please.