From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#59424: bug#59358: 29.0.50; failing to load .eln for init file sets user-init-file to warnings.el Date: Mon, 28 Nov 2022 13:58:07 +0000 Message-ID: References: <834juwbasq.fsf@gnu.org> <838rjwp5bg.fsf@gnu.org> <837czgp2i8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21111"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Juanma Barranquero , 59424@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 28 15:12:24 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 1ozerw-0005HR-2H for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Nov 2022 15:12:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozere-0006Xs-Uo; Mon, 28 Nov 2022 09:12: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 1ozerd-0006XT-4J for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 09:12: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 1ozerc-0004OJ-Hj for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 09:12:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozeez-0004b8-SU for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 08:59:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Nov 2022 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59424 X-GNU-PR-Package: emacs Original-Received: via spool by 59424-submit@debbugs.gnu.org id=B59424.166964389217666 (code B ref 59424); Mon, 28 Nov 2022 13:59:01 +0000 Original-Received: (at 59424) by debbugs.gnu.org; 28 Nov 2022 13:58:12 +0000 Original-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 Original-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 Original-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 In-Reply-To: <837czgp2i8.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 27 Nov 2022 22:26:55 +0200") 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:249303 Archived-At: 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