From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Wong Newsgroups: gmane.emacs.bugs Subject: bug#63871: 29.0.91; JIT native comp triggered to compile loaddefs repeatedly on require Date: Sat, 3 Jun 2023 14:54:22 +0100 Message-ID: References: <83jzwk8xhn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="647b4626_39974a64_d2d7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40308"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63871-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 03 15:55: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 1q5Rin-000AGM-Dy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Jun 2023 15:55:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5Rih-00014o-Ao; Sat, 03 Jun 2023 09:55:03 -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 1q5Rig-00014d-5a for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 09:55: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 1q5Rif-0002JT-U1 for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 09:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5Rif-0003Gp-Qg for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 09:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2023 13:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63871 X-GNU-PR-Package: emacs Original-Received: via spool by 63871-done@debbugs.gnu.org id=D63871.168580049712553 (code D ref 63871); Sat, 03 Jun 2023 13:55:01 +0000 Original-Received: (at 63871-done) by debbugs.gnu.org; 3 Jun 2023 13:54:57 +0000 Original-Received: from localhost ([127.0.0.1]:41923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5Rib-0003GO-8a for submit@debbugs.gnu.org; Sat, 03 Jun 2023 09:54:57 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:58538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5RiY-0003G9-5j for 63871-done@debbugs.gnu.org; Sat, 03 Jun 2023 09:54:55 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-307d58b3efbso2932724f8f.0 for <63871-done@debbugs.gnu.org>; Sat, 03 Jun 2023 06:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685800488; x=1688392488; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=AaAQ2aJLnmOxzemENYZdlyl2T/HLVJrMFqg2ZbFhvp8=; b=GxUb57QqZbLBWZv8wj+zDFdg7O896Y+eof8qpFg199sJ+gL5DRPCZGwXx5X3qGJT1c yr1JdOF3GR+82jEDMKggSL9hBeD0LzeOcVbreyY11vQi2brYUgeyvpWBK7MufBVUFUKX eI9XNlnxvtkQXzY4FiIp3O2RRA1ClKPL0aLOCFxL/8uX9fDBiCYZAGboNC7Ka0YD9TNh n0dbiZSxE7NQuKhneGkfiNN500bKB+ecGaa4nixog82mQzdBHYKMh0mc9x2RDBvvyCYX 19M5tobbpFkXZ4DtTp+8yksvZ3xa88t0dLU4V+mupPox7w3iUg7dPVflU161bvdDox3t eNrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685800488; x=1688392488; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AaAQ2aJLnmOxzemENYZdlyl2T/HLVJrMFqg2ZbFhvp8=; b=BEm+zupiLI/pbr7/EgJW1rAztuQVhe1YjXbuRdWoe4fGeTPxYexZETgoV/Wf3DrShL tvLTv3RlSouJcRZrojG0+BdDfRrRWZEsz8exwqztVjRkXE8jW+e73fOq5DDXLUbn7Tyn +fONCVQvMnEUiUwQTyVMPfh/jNOA99Gqp9/Ig2ArEd69Pg5TQocc1nK+9P6I/VjLyPih TWAQ7TcMy4YhiwE3Mar3zsNZeswaY6mBcE2JLvn5llZ7pOfOmpr+yQQdm2EqORFUSZbM xxBfJYo3G4rviE+UvKt0bF1jj+jIWnouwFMpr8jW0a3DF5b4X6IjqzUmTdCNHfHA7yp1 5v1Q== X-Gm-Message-State: AC+VfDxmZANkjf3+ZEEiwnN+S0hG9Lg7AuSns2oA+P9cjwrM6gzCNyEu 0GvsN43jeCkFF2m0D+LTporU3lCRK2k= X-Google-Smtp-Source: ACHHUZ6DNsNG6V6s0xsJdI+4BvnaZXvBqsFWtptbaEsN1R+aZ5NbrjzdmWyVm8xhvCYeNT235epWjg== X-Received: by 2002:a05:6000:100b:b0:30a:de30:bb1b with SMTP id a11-20020a056000100b00b0030ade30bb1bmr2107188wrx.33.1685800487717; Sat, 03 Jun 2023 06:54:47 -0700 (PDT) Original-Received: from [2a01:4b00:89a0:2400:ea:3215:100:0] ([2a01:4b00:89a0:2400:18b7:3953:b17d:de2c]) by smtp.gmail.com with ESMTPSA id v10-20020a5d4b0a000000b0030789698eebsm4590594wrq.89.2023.06.03.06.54.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Jun 2023 06:54:47 -0700 (PDT) In-Reply-To: <83jzwk8xhn.fsf@gnu.org> X-Readdle-Message-ID: daee1aa4-e573-4973-9751-79a546639f90@Spark 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:262843 Archived-At: --647b4626_39974a64_d2d7 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline The problem is not that it does something when it compiles, the problem is it should not have triggered a compilation at all and pops up a buffer. This messes up the buffer order when restoring a session with desktop mode on restart. On 3 Jun 2023 at 2:50 PM +0100, Eli Zaretskii , wrote: > > From: Jimmy Yuen Ho Wong > > Date: Sat, 03 Jun 2023 14:22:41 +0100 > > > > > > Reproduction: > > > > 1. emacs -q -nsl --eval="(require 'cl-lib)" > > 2. C-x b TAB > > 3. Select *Async-native-compile-log* > > 4. The following is printed > > > > ```emacs-lisp > > Compiling /opt/local/share/emacs/29.0.91/lisp/emacs-lisp/cl-loaddefs.el.gz... > > uncompressing cl-loaddefs.el.gz... > > uncompressing cl-loaddefs.el.gz...done > > Compilation finished. > > ``` > > > > Expectation: > > > > This behavior is observed when any packages in ~/.emacs.d/elpa/ > > autoloads and require cl-lib, org or tramp as well. > > > > The simple act of requiring a built-in Emacs package should not trigger > > a JIT native compilation on an Emacs installation built with > > `--with-native-compilation=aot`. > > And it doesn't. cl-loaddefs has the "no-native-compile: t" thingy in > the file-local variables, so the native-compilation does nothing. > > So I don't see any bug here, and I'm closing this bug. --647b4626_39974a64_d2d7 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
The problem is not that it does something when it c= ompiles, the problem is it should not have triggered a compilation at all= and pops up a buffer. This messes up the buffer order when restoring a s= ession with desktop mode on restart.
On 3 Jun 2023 at 2:50 PM +0100, Eli= Zaretskii <eliz=40gnu.org>, wrote:
=46rom: Jimmy Yuen Ho Wong <wyuenho=40gm= ail.com>
Date: Sat, 03 Jun 2023 14:22:41 +0100


Reproduction:

1. emacs -q -nsl --eval=3D=22(require 'cl-lib)=22
2. C-x b TAB
3. Select *Async-native-compile-log*
4. The following is printed

=60=60=60emacs-lisp
Compiling /opt/local/share/emacs/29.0.91/lisp/emacs-lisp/cl-loaddefs.el.g= z...
uncompressing cl-loaddefs.el.gz...
uncompressing cl-loaddefs.el.gz...done
Compilation finished.
=60=60=60

Expectation:

This behavior is observed when any packages in =7E/.emacs.d/elpa/
autoloads and require cl-lib, org or tramp as well.

The simple act of requiring a built-in Emacs package should not trigger a JIT native compilation on an Emacs installation built with
=60--with-native-compilation=3Daot=60.

And it doesn't. cl-loaddefs has the =22no-native-compile: t=22 thingy in<= br /> the file-local variables, so the native-compilation does nothing.

So I don't see any bug here, and I'm closing this bug.
=
--647b4626_39974a64_d2d7--