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#62317: bug #62317: 28.2; This byte-compiled file behaves wrongly. Date: Thu, 30 Mar 2023 12:41:18 +0300 Message-ID: <83edp660g1.fsf@gnu.org> References: <20230330.182045.1482877200410669261.teika@gmx.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34857"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62317@debbugs.gnu.org, akrl@sdf.org To: Teika Kazura Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 11:42:21 2023 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 1phonU-0008nv-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 11:42:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phonE-0003lY-A6; Thu, 30 Mar 2023 05:42:04 -0400 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 1phonC-0003kx-Hi for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:42:02 -0400 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 1phonB-0003Nd-T8 for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phonB-00043W-Os for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Mar 2023 09:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62317 X-GNU-PR-Package: emacs Original-Received: via spool by 62317-submit@debbugs.gnu.org id=B62317.168016927715523 (code B ref 62317); Thu, 30 Mar 2023 09:42:01 +0000 Original-Received: (at 62317) by debbugs.gnu.org; 30 Mar 2023 09:41:17 +0000 Original-Received: from localhost ([127.0.0.1]:55803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phomT-00042J-4r for submit@debbugs.gnu.org; Thu, 30 Mar 2023 05:41:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phomR-000426-Vd for 62317@debbugs.gnu.org; Thu, 30 Mar 2023 05:41:16 -0400 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 1phomL-0003Hb-FJ; Thu, 30 Mar 2023 05:41:09 -0400 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=QiAKZO5F7fVCtXfsmEJFdtRlRDhR9FKfDTTBOR03gPc=; b=MKT2Zgo5wh5K bmC6gG8pLMxXvoCeiM76IJFE9XSDeao+3WJx4dsgcquutcwVR99ttTaiAE92EjXTCFk19bCtu1zSq UYrD7Q5Rnhq9FtDx6emAW4PsTsMbPXKd+/0/wYj9RkFF2xQnZYBSM48IPZBPhf681ZCD6o5rVQ2op /nNCo2HdL/3Dag4xzSqcGaRBakJR33/I1VDO6Ldlzof7DOgIIvJr7aYdsz/ZgCVLXfknMJZDOqLSm Z5tYA5zlsxMYOpk4t2xl8c7YRcIOzt5+HwvVLSe9e3k/200iSS3CtAn1afR12b5WHlo4AiHiRpvFD 9C/tgUqh1XDxShGlbXmCeg==; 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 1phomK-0001vN-OS; Thu, 30 Mar 2023 05:41:09 -0400 In-Reply-To: <20230330.182045.1482877200410669261.teika@gmx.com> (message from Teika Kazura on Thu, 30 Mar 2023 18:20:45 +0900 (JST)) 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:258914 Archived-At: > Date: Thu, 30 Mar 2023 18:20:45 +0900 (JST) > Cc: eliz@gnu.org, akrl@sdf.org > From: Teika Kazura > > What surprises is that `native-compile-async' and `batch-native-compile' generate differnt codes. To show it, use the same init.el and a.el above. Byte-compile first a.el, then init.el. Next native-compile init.el. Run emacs, and the above bug appears. This is not surprising at all: native-compile-async compiles in a separate process with environment unaffected by your customizations, whereas batch-native-compile compiles in the current session, and thus inherits all of your customizations. > The difference is that (i) if you use native-compile-async, by removing one of init-.eln or init.elc, the bug disappears, even if the other remains. But (ii) if you use "$ emacs -Q -batch -f batch-native-compile *el", eln in fact does not matter; only the presence of init.elc screws things up. > > # Who can expect this? > > At the very least, native-compilation has too many undocumented aspects. If you want, I'll open a new bug for this discrepancy. > > # It's off-topic for this bug, but for the above sample code, automatic, asynchronous generation of an eln file does not happen, unlike the case of my real init.el. I can't find the reason yet. If the above happens in "emacs -Q", a reproducible recipe will help. And please try that in Emacs 29 if you can, since we don't plan on any releases of Emacs 28 with any substantial changes.