From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: native compilation sets user-init-file to .eln file Date: Thu, 17 Nov 2022 04:46:49 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000813b6705eda272c8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36537"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 17 04:48:22 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ovVsz-0009LI-Tq for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Nov 2022 04:48:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovVsC-0001Te-AM; Wed, 16 Nov 2022 22:47:32 -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 1ovVsB-0001TV-DZ for emacs-devel@gnu.org; Wed, 16 Nov 2022 22:47:31 -0500 Original-Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovVs9-0002FL-MP for emacs-devel@gnu.org; Wed, 16 Nov 2022 22:47:31 -0500 Original-Received: by mail-ed1-x52a.google.com with SMTP id a5so745809edb.11 for ; Wed, 16 Nov 2022 19:47:28 -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=a8sn9zs4094Co+URc2dq+wdOOtxcpBWslzVtUtiN0ho=; b=qZetY2jc0m7oide09+ny5XAYyGiOZvnDlDWT0sxyBPJIibEVkK0aJfFLv5JNqJ9Xcz V22b5YOUTQ3Kv5JwmLjM7GPRoJvTHFxCZ7C7hmS0wDD2ePr/AZ9kP+5w2Tp/XwJ9hX30 qht+gKYeVOoznWbK7Kr5jORcB/xUT/o1o+hejyt7X0WrxfOCYcCRo6ZixravYrvAqRCa w4JNFN2+vSr/nxUOEFlf6rEFJsQaLTo4ghyR/fdKuEIhj0FTjVYs0u29yQ24aSnuGmsH gfeNui1hzrixvmAmaoj6RS0OxQ98wQJL8IF0flkqbb0S0Ox2DVZrVEuxbUCLJ63kP30T 23aA== 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=a8sn9zs4094Co+URc2dq+wdOOtxcpBWslzVtUtiN0ho=; b=W0EluS3nd2fgePEj9wJOBdwvzrxH+M0FwXjYC+g9QEwEa7ARFSdPvWpc16XO2xTAwO y3DmTlg4MTNbcGYikWz0DnxIUWgpxBoIL5R62lNgH0sBvV0u0vTNWRda8gQpRuTYcdTE PP+Yw/NLWDwuelMhuzsgp6QsLcQ2VB3SiROqaIpEX6VTNRnKx4WHSm3FOKUFWfc2lPmO gYDjl56ODhlAgdgOlp3W01PPn/5cklqRBF0jl2TRxzpYhR9OFyfssyX7R3xvk0rnzLw6 zrhW82jx9MVdbeBGHKSpvkMUp6OorG04DmvvR6l90AzPDfrMIe5yz6YBfm99dr8vrGTr YtIg== X-Gm-Message-State: ANoB5pmVNN3LFu04tIgguekYwWQH5sJHXDw4rjRjACkEx636Egxabr9a 6V7uXgDlBPEi8fDOvqsl1o9phOI8v07joewRTeyVQunC X-Google-Smtp-Source: AA0mqf5SHas/P2+ii4ALVLMwq2TsOM3tFMGHKIXlI8fY0/C0yu0Pkotz3XyRiYlgZYgjaEJGDaBCbP9Mghc/sDZBlDM= X-Received: by 2002:a05:6402:1050:b0:467:e9a5:77c5 with SMTP id e16-20020a056402105000b00467e9a577c5mr567896edu.289.1668656845109; Wed, 16 Nov 2022 19:47:25 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::52a; envelope-from=lekktu@gmail.com; helo=mail-ed1-x52a.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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300002 Archived-At: --000000000000813b6705eda272c8 Content-Type: text/plain; charset="UTF-8" # byte-compile your init.el, then emacs # init.el is compiled to native code, and user-init-file => init.el C-x C-c emacs # user-init-file => points to init-*-*.eln Which I imagine is unintended, as there are other places in the code (for example, custom) that expect user-init-file to point to an .el. Note: The above recipe is entirely reproducible in my system, as long as running Emacs native-compiles init.el. I add this caveat because I suppose there's some size/complexity threshold to trigger the native compilation (a one-line init.el[c] is not native-compiled, for example). --000000000000813b6705eda272c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

# byte-compile your init.el, then
emacs=C2=A0 =C2=A0 =C2= =A0# init.el is compiled to native code, and user-init-file =3D> init.el=
C-x C-c
emacs=C2=A0 =C2=A0 =C2=A0# user-init-file =3D> points to = init-*-*.eln

Which I imagine is unintended, as there are other place= s in the code (for example, custom) that expect user-init-file to point to = an .el.

Note: The above recipe is entirely reproducible in my system= , as long as running Emacs native-compiles init.el. I add this caveat becau= se I suppose there's some size/complexity threshold to trigger the nati= ve compilation (a one-line init.el[c] is not native-compiled, for example).=


--000000000000813b6705eda272c8--