From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Teika Kazura Newsgroups: gmane.emacs.bugs Subject: bug#62317: bug #62317: 28.2; This byte-compiled file behaves wrongly. Date: Thu, 30 Mar 2023 18:20:45 +0900 (JST) Message-ID: <20230330.182045.1482877200410669261.teika@gmx.com> References: <20230321.125408.609857763486645873.teika@gmx.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4460"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, akrl@sdf.org To: 62317@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 11:22:10 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 1phoTy-0000ww-8K for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 11:22:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phoTt-0005Gq-40; Thu, 30 Mar 2023 05:22:05 -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 1phoTr-0005GR-PK for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:22:03 -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 1phoTr-0008F0-0I for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:22:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phoTq-0003WP-Dy for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Teika Kazura Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Mar 2023 09:22:02 +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.168016808213488 (code B ref 62317); Thu, 30 Mar 2023 09:22:02 +0000 Original-Received: (at 62317) by debbugs.gnu.org; 30 Mar 2023 09:21:22 +0000 Original-Received: from localhost ([127.0.0.1]:55752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phoTC-0003VU-5G for submit@debbugs.gnu.org; Thu, 30 Mar 2023 05:21:22 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:36719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phoTA-0003VG-MP for 62317@debbugs.gnu.org; Thu, 30 Mar 2023 05:21:21 -0400 Original-Received: from localhost ([153.204.206.72]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MkHMP-1qAJjU23qL-00kfhP; Thu, 30 Mar 2023 11:21:14 +0200 In-Reply-To: <20230330.181859.275167795410318945.teika@gmx.com> X-Provags-ID: V03:K1:7PgzGlf3HLVg7K13oNFT3JWuO1RPm8Fj3ITVepz6QNd8zBlKWxV 3+5zrULrnlr2+s+eisuTHbYxYhtUptFNOZCOTzdUoFhKPFeB683BXRf+F0A+cJRvw3DeYfx +N5CIsQUI0J1+gg2Hh8GlsGgmFf49knnBdid7g7S/PNbPmbKVNikPtfta5LrE9LpWDKAgME UMx++0RF/FGbGHHpPjxyQ== UI-OutboundReport: notjunk:1;M01:P0:CtPNDy2IYkM=;K6SmL4hr66J2HQmOb+w1Vnb1d43 wbhM+8JMzi/5+J/EWHaFE04u2YEAR6HXaiYwxCyQQVk8jITb36K2KFyKlkZPH5pilBzMe18RH WfRaN0OgCLXYkKvjxPtSWhZnsrpyLY6FuEkqMDKr9H+tlgj6KroDMSUBG8bdWSJXgdUEbkYLy QUUR1HCOyTkQww7MgEWwXHHhE3vB3Razxu70Upf+k4FsXgqTiuH4RTx2149Jt4z3HAQa0LPhz GJSLe725F9YZ/LXkf8DtIsMJgdqAI0Q1T6+UqK28pU4Qxmc2Ke85SLmLLx/izhTzNf4TSRSMD MOcD6Au0wihwubDCEuJ79fpRcU/JaVFRcuWmMm0HPIe454oAkYy3hcKTF20t+mdS+1thSsrxu NCT8IMk1nenkSUVTBxoECds0NyM95J2uPNzAzcZykuY4O/ZjtVbTfu3j0KgVy/Bm4MyMI8kYo 5b81OUqAyqPlWH3ZPw3nipMzIDYg/PQwBwfjlB/nH/Je8IM9Y83O+klw/xpiWXFGAuQewZFqZ qBi9mZuQ04l8EP+zSnXCHd4I7sewqNtHchEtokkpAwih2ST7rg48x5V30igcjGYoujbio936n sZDbqoye9g5qQ1yt9X7rgpoi86WY/m3zbObdlxzHTs164hmQ/w2xip8RKE+7TFoI36GvGU4l5 JI4psRaprrnSichFHgc1pF+7Fr/As1ghfmHRO8azsa3kH9cRI/TzyFywy4D7D5fU5s0GgieR7 tM0lIchrHneD/TcfgH3dZgTEt+P87CK1QteCep23J1NY+5xbKzlP8D0ChQF0nTaEzHXzwUEp 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:258909 Archived-At: Hi. I found a relation of this bug to native compilation, but there's a new, independent bug. Anyway remember the problem here is the pair of require - set-buffer, and I'm using 28.2. (I know it's not safe. :p) 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. 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. Regards, Teika