From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jun 2025 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 78818@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17501855344179 (code B ref -1); Tue, 17 Jun 2025 18:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jun 2025 18:38:54 +0000 Received: from localhost ([127.0.0.1]:34761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRbCw-00015I-2v for submit@debbugs.gnu.org; Tue, 17 Jun 2025 14:38:54 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55710) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRbCr-00014c-Ja for submit@debbugs.gnu.org; Tue, 17 Jun 2025 14:38:53 -0400 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 1uRbCl-0001J2-Li for bug-gnu-emacs@gnu.org; Tue, 17 Jun 2025 14:38:44 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uRbCj-0006aI-Qt for bug-gnu-emacs@gnu.org; Tue, 17 Jun 2025 14:38:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=G3HObaO4CYSvhDTecM7Mh/YIy23nzpgRWp40hVqKkp0=; b=SCa3iBeesireNczh0Z5kvHH6XZ bArgYZHM9EsbFbYJ0Q9nEYzoN4lX9XFp5qmpVBg6lUq14FWIbSHwZjZvsXCyDa1/ks92b3ZOEEpFS RLvVmWBpf0cdPV3YRsF8n8qWyFof9ZNdjE1z+lvkGU66drHoDxE8sX+S1yEEkcbbGvAg=; From: Daniel Mendler Date: Tue, 17 Jun 2025 20:38:20 +0200 Message-ID: <87sejy43j7.fsf@daniel-mendler.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a01:4f8:c012:9177::1; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) In the *Native-compile-Log* I see the following messages on a newly compiled Emacs 31 from the current Emacs master branch: Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie in "/tmp/= emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET=E2=80=99. See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(elisp)Con= verting to Lexical Binding=E2=80=99 for more information. Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-7= 2756e2d686f6f6b73_run_hooks_0.eln... In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.4) of 2025-06-17 built on host Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Debian GNU/Linux 13 (trixie) Configured using: 'configure --prefix=3D$HOME/.local/share/emacs --without-compress-install --with-tree-sitter --with-native-compilation --with-dbus --without-selinux --without-threads --disable-gc-mark-trace --without-gsettings --without-gpm --with-cairo --with-cairo-xcb --with-xinput2 --with-x-toolkit=3Dgtk3 --without-toolkit-scroll-bars' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: LIMPLE From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jun 2025 11:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Mendler Cc: 78818@debbugs.gnu.org Received: via spool by 78818-submit@debbugs.gnu.org id=B78818.175024690119127 (code B ref 78818); Wed, 18 Jun 2025 11:42:02 +0000 Received: (at 78818) by debbugs.gnu.org; 18 Jun 2025 11:41:41 +0000 Received: from localhost ([127.0.0.1]:47886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrAi-0004yP-U4 for submit@debbugs.gnu.org; Wed, 18 Jun 2025 07:41:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60862) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrAg-0004xq-Sd for 78818@debbugs.gnu.org; Wed, 18 Jun 2025 07:41:39 -0400 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 1uRrAa-0004nH-NP; Wed, 18 Jun 2025 07:41:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=oEGfxg+Mx9Va7E60/JTR9m05oEbIJQVP83hnADLllP4=; b=iMU+eEFK3Xs/wxGPqP6a RYxPbVNbyIXTIEAFOAjWN1wiWfPyHrxRVJGrxkIQBYzwAFy/CV062IQYaRuHaSGSiAZXWeDnU3QrZ tIqKeRAH5MeFHBXgSKuFFIzpf+pGeWToNLMFh/Uw+ObLPKJ01ao0QhqszMCDnzeeiQXQpoMIuRpbc HM9jJtGXWOIWvuPiHELUQJuyWc01eYZYvgsSaiBMmWlaJU1bC8lSENkJ9s3LfY5XGx/sQqsYOVMAY NxL9XnU5viRmvVSh/3fJ05ZwwW9j6U7oj0wk78X8TikYKiwOYODCH3U/UFXv9D+DhOtP3JNwrTgME 1ET8Wy9SuQ5jbA==; Date: Wed, 18 Jun 2025 14:41:30 +0300 Message-Id: <86ldppmg45.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87sejy43j7.fsf@daniel-mendler.de> (bug-gnu-emacs@gnu.org) References: <87sejy43j7.fsf@daniel-mendler.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 17 Jun 2025 20:38:20 +0200 > From: Daniel Mendler via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > In the *Native-compile-Log* I see the following messages on a newly > compiled Emacs 31 from the current Emacs master branch: > > Warning (files): Missing ‘lexical-binding’ cookie in "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". > You can add one with ‘M-x elisp-enable-lexical-binding RET’. > See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’ > for more information. > Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-72756e2d686f6f6b73_run_hooks_0.eln... Please show a recipe to reproduce this problem starting from "emacs -Q". Or at least figure out and tell here compilation of what ELisp file triggered this message (it sounds like it's part of your init configuration?). I started "emacs -Q", but didn't see any such messages that I could use as a starting point for investigation. Or, if I'm missing something, could you suggest how to investigate this given the information you provided above? Thanks. From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jun 2025 11:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Andrea Corallo , 78818@debbugs.gnu.org Received: via spool by 78818-submit@debbugs.gnu.org id=B78818.175024757423706 (code B ref 78818); Wed, 18 Jun 2025 11:53:01 +0000 Received: (at 78818) by debbugs.gnu.org; 18 Jun 2025 11:52:54 +0000 Received: from localhost ([127.0.0.1]:48060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrLZ-0006AF-8X for submit@debbugs.gnu.org; Wed, 18 Jun 2025 07:52:53 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:53473 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrLV-00069g-LG for 78818@debbugs.gnu.org; Wed, 18 Jun 2025 07:52:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=g52uidArXEXCOjDdd4oZ5cyPstdxk1Xm3F2o77IhwLU=; b=BcVSHzajMgEAjQRnSpAoZTiDn1 HA9MXEuKt6WzgRcu8uRJdjJ3P0sguLoIe786IHDVm2j7vDlBPb3l2H6gd9LEdnNiUPa1NZgRqWxSP PoKjLWOeufOE5+C05tKzW+AevxEeZksZwViZ1n+Ka5z1ajFXv/rmRXU1ZO12GpABYiD4=; From: Daniel Mendler In-Reply-To: <86ldppmg45.fsf@gnu.org> References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> Date: Wed, 18 Jun 2025 13:52:42 +0200 Message-ID: <87qzzhe06t.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> Date: Tue, 17 Jun 2025 20:38:20 +0200 >> From: Daniel Mendler via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> In the *Native-compile-Log* I see the following messages on a newly >> compiled Emacs 31 from the current Emacs master branch: >>=20 >> Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie in "/t= mp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el= ". >> You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET=E2=80= =99. >> See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(elisp)= Converting to Lexical Binding=E2=80=99 >> for more information. >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampolin= e-72756e2d686f6f6b73_run_hooks_0.eln... > > Please show a recipe to reproduce this problem starting from "emacs -Q". > Or at least figure out and tell here compilation of what ELisp file > triggered this message (it sounds like it's part of your init > configuration?). I started "emacs -Q", but didn't see any such > messages that I could use as a starting point for investigation. > > Or, if I'm missing something, could you suggest how to investigate > this given the information you provided above? The trampoline .el file is generated by `comp--final' in comp.el. I found this by grepping for `emacs-int-comp'. The generated Elisp file doesn't include a `lexical-binding' cookie, which seems to trigger the warning. As far as I understand the trampolines are generated if native subrs are advised in the configuration. Daniel From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Jun 2025 12:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Mendler Cc: acorallo@gnu.org, 78818@debbugs.gnu.org Received: via spool by 78818-submit@debbugs.gnu.org id=B78818.1750248906561 (code B ref 78818); Wed, 18 Jun 2025 12:16:02 +0000 Received: (at 78818) by debbugs.gnu.org; 18 Jun 2025 12:15:06 +0000 Received: from localhost ([127.0.0.1]:48415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrh3-00008o-CX for submit@debbugs.gnu.org; Wed, 18 Jun 2025 08:15:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56458) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrh0-00006W-PS for 78818@debbugs.gnu.org; Wed, 18 Jun 2025 08:15:03 -0400 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 1uRrgu-0001Po-DR; Wed, 18 Jun 2025 08:14:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SUfYSz0FAaGumrbF0erEDiiEQZnCpV9CYqJwDEq9tG8=; b=MiQHiAwEnlbHtxTXbvmH fd3rQkwqeSKY8bCU0frupaNMnX53lXQjxNvMqND8RO2OCnnW7Pz9uIxOSs2+pLIF3WqRfw57JZvAQ G6mOb6I28bLNZEVAfCXydIZnLa2EtcnETFTgPH7Jr4ZltMukrYyZHI9+WiiUv3sDFywm0L/qc8EqI 7pmSf7UbiDgR7TEGDy6BLEr4KBvd7orcAeojJz1iUtHIpIFwn0KYb0ERSYFHsohao1SDEqX87R4++ +WxDtN8Gh5Bgzf5F11AhGQUKfCARMux0nRjQuO2/0mSwZTJFfiPZxgrWoJaoWOJgy5BCG+OmF4Dt8 7MJlEc+x5mxpsQ==; Date: Wed, 18 Jun 2025 15:14:51 +0300 Message-Id: <86ecvhmekk.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87qzzhe06t.fsf@daniel-mendler.de> (message from Daniel Mendler on Wed, 18 Jun 2025 13:52:42 +0200) References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> <87qzzhe06t.fsf@daniel-mendler.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Daniel Mendler > Cc: 78818@debbugs.gnu.org, Andrea Corallo > Date: Wed, 18 Jun 2025 13:52:42 +0200 > > Eli Zaretskii writes: > > >> Date: Tue, 17 Jun 2025 20:38:20 +0200 > >> From: Daniel Mendler via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> In the *Native-compile-Log* I see the following messages on a newly > >> compiled Emacs 31 from the current Emacs master branch: > >> > >> Warning (files): Missing ‘lexical-binding’ cookie in "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". > >> You can add one with ‘M-x elisp-enable-lexical-binding RET’. > >> See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’ > >> for more information. > >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-72756e2d686f6f6b73_run_hooks_0.eln... > > > > Please show a recipe to reproduce this problem starting from "emacs -Q". > > Or at least figure out and tell here compilation of what ELisp file > > triggered this message (it sounds like it's part of your init > > configuration?). I started "emacs -Q", but didn't see any such > > messages that I could use as a starting point for investigation. > > > > Or, if I'm missing something, could you suggest how to investigate > > this given the information you provided above? > > The trampoline .el file is generated by `comp--final' in comp.el. I > found this by grepping for `emacs-int-comp'. The generated Elisp file > doesn't include a `lexical-binding' cookie, which seems to trigger the > warning. As far as I understand the trampolines are generated if native > subrs are advised in the configuration. Thanks. We insert the lexical-binding cookie in comp--run-async-workers, but maybe trampoline compilation doesn't use that? Andrea, any suggestions? From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jun 2025 19:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Daniel Mendler , 78818@debbugs.gnu.org Received: via spool by 78818-submit@debbugs.gnu.org id=B78818.17507078347788 (code B ref 78818); Mon, 23 Jun 2025 19:44:02 +0000 Received: (at 78818) by debbugs.gnu.org; 23 Jun 2025 19:43:54 +0000 Received: from localhost ([127.0.0.1]:58035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uTn54-00021H-Oz for submit@debbugs.gnu.org; Mon, 23 Jun 2025 15:43:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36274) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uTn50-0001zx-Bh for 78818@debbugs.gnu.org; Mon, 23 Jun 2025 15:43:48 -0400 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 1uTn4s-0000hf-LC; Mon, 23 Jun 2025 15:43:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=yTopT3VQPb7p4dw+ohpoaigrPkPwBCR4dgxVpLoxC/E=; b=Lghj5IOqwt2xpQw6Asbw /cYH16dg5NgkSwf5ybmHwCBZHQ13WHidHE5OMGGNzfAUAdBpEoq5NsiXwUGceQ85O0wvP15tHZiTg 8fdfp0ur0Fz2QDZZ9rFtWXLlaJ1/09cv3O0Q1jQMab9MQYVfE4/1eDrM1k/GghbU4l3rapo5Tksgs jLPxMklHG3Q+R3cJoqSjOfyFdJHo5XaMHXNhjG7nDtd2NxUFI0T7fxE2ejd5j/6O6hZWBVhM2M1q5 mq8bTZxfK/jl/Enw4pemGHUrN+w3NXNIQ2sldEYnVjqkcieOJ5Xjy/rQWUg3ujVUEv9d03SYr01iG Afmlq0quLg8SCQ==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1uTn4q-0003gL-V2; Mon, 23 Jun 2025 15:43:37 -0400 From: Andrea Corallo In-Reply-To: <86ecvhmekk.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 Jun 2025 15:14:51 +0300") References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> <87qzzhe06t.fsf@daniel-mendler.de> <86ecvhmekk.fsf@gnu.org> Date: Mon, 23 Jun 2025 15:43:36 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> From: Daniel Mendler >> Cc: 78818@debbugs.gnu.org, Andrea Corallo >> Date: Wed, 18 Jun 2025 13:52:42 +0200 >> >> Eli Zaretskii writes: >> >> >> Date: Tue, 17 Jun 2025 20:38:20 +0200 >> >> From: Daniel Mendler via "Bug reports for GNU Emacs, >> >> the Swiss army knife of text editors" >> >> >> >> In the *Native-compile-Log* I see the following messages on a newly >> >> compiled Emacs 31 from the current Emacs master branch: >> >> >> >> Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie in = "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2= .el". >> >> You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET=E2= =80=99. >> >> See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(eli= sp)Converting to Lexical Binding=E2=80=99 >> >> for more information. >> >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampo= line-72756e2d686f6f6b73_run_hooks_0.eln... >> > >> > Please show a recipe to reproduce this problem starting from "emacs -Q= ". >> > Or at least figure out and tell here compilation of what ELisp file >> > triggered this message (it sounds like it's part of your init >> > configuration?). I started "emacs -Q", but didn't see any such >> > messages that I could use as a starting point for investigation. >> > >> > Or, if I'm missing something, could you suggest how to investigate >> > this given the information you provided above? >> >> The trampoline .el file is generated by `comp--final' in comp.el. I >> found this by grepping for `emacs-int-comp'. The generated Elisp file >> doesn't include a `lexical-binding' cookie, which seems to trigger the >> warning. As far as I understand the trampolines are generated if native >> subrs are advised in the configuration. > > Thanks. We insert the lexical-binding cookie in > comp--run-async-workers, but maybe trampoline compilation doesn't use > that? > > Andrea, any suggestions? Yep, I'm testing this I think it should work: modified lisp/emacs-lisp/comp.el @@ -3363,7 +3363,7 @@ comp--final nil ".el")) (default-directory invocation-directory)) (with-temp-file temp-file - (insert ";; -*-coding: utf-8-emacs-unix; -*-\n") + (insert ";; -*- coding: utf-8-emacs-unix; lexical-binding: t -*-= \n") (mapc (lambda (e) (insert (prin1-to-string e))) expr)) From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 23 Jun 2025 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Daniel Mendler , 78818@debbugs.gnu.org Received: via spool by 78818-submit@debbugs.gnu.org id=B78818.175070936519974 (code B ref 78818); Mon, 23 Jun 2025 20:10:02 +0000 Received: (at 78818) by debbugs.gnu.org; 23 Jun 2025 20:09:25 +0000 Received: from localhost ([127.0.0.1]:58375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uTnTo-0005Bw-Gx for submit@debbugs.gnu.org; Mon, 23 Jun 2025 16:09:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57864) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uTnTm-0005B9-6R for 78818@debbugs.gnu.org; Mon, 23 Jun 2025 16:09:22 -0400 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 1uTnTg-0003g0-4u; Mon, 23 Jun 2025 16:09:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=cyzLTgePKja5kCBBGurE1aFu4YYkGf3ETEgFPU1ccZw=; b=mrrtF/w8MpDzpDxvZzic tf0yZ+0xIeBaHc3aAPXmhzDZaYmsfm3c5e0gxyqQ4nf1OlalJXamBPn3a4foP+0yFleJ0LSWmTNvx ljCjPevHaED498DWhntG4QoMpEPl05tFD5Gst3Ll6HVaP8W7sClIjETWkMKH9MDMcicX7+8xmmRg8 i92Rh1C/9ETFjp5IHJMd6CbVoPmYDJ9HhWaQlOHIf5phXj2xBIpv/imUQkJiIXplsMWTUOWPpxK5g ++3X9b4wX+UEvhThVfYb1/wZVPsu08x8/ee7XrZMqDrovbKOcrOwWdGq6c2EukQFLbT7GEwsV/J/o zLprt+a2Qm3X9g==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1uTnTd-0002JJ-Mg; Mon, 23 Jun 2025 16:09:13 -0400 From: Andrea Corallo In-Reply-To: (Andrea Corallo's message of "Mon, 23 Jun 2025 15:43:36 -0400") References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> <87qzzhe06t.fsf@daniel-mendler.de> <86ecvhmekk.fsf@gnu.org> Date: Mon, 23 Jun 2025 16:09:13 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Daniel Mendler >>> Cc: 78818@debbugs.gnu.org, Andrea Corallo >>> Date: Wed, 18 Jun 2025 13:52:42 +0200 >>> >>> Eli Zaretskii writes: >>> >>> >> Date: Tue, 17 Jun 2025 20:38:20 +0200 >>> >> From: Daniel Mendler via "Bug reports for GNU Emacs, >>> >> the Swiss army knife of text editors" >>> >> >>> >> In the *Native-compile-Log* I see the following messages on a newly >>> >> compiled Emacs 31 from the current Emacs master branch: >>> >> >>> >> Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie in= "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM= 2.el". >>> >> You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET= =E2=80=99. >>> >> See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(el= isp)Converting to Lexical Binding=E2=80=99 >>> >> for more information. >>> >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--tramp= oline-72756e2d686f6f6b73_run_hooks_0.eln... >>> > >>> > Please show a recipe to reproduce this problem starting from "emacs -= Q". >>> > Or at least figure out and tell here compilation of what ELisp file >>> > triggered this message (it sounds like it's part of your init >>> > configuration?). I started "emacs -Q", but didn't see any such >>> > messages that I could use as a starting point for investigation. >>> > >>> > Or, if I'm missing something, could you suggest how to investigate >>> > this given the information you provided above? >>> >>> The trampoline .el file is generated by `comp--final' in comp.el. I >>> found this by grepping for `emacs-int-comp'. The generated Elisp file >>> doesn't include a `lexical-binding' cookie, which seems to trigger the >>> warning. As far as I understand the trampolines are generated if native >>> subrs are advised in the configuration. >> >> Thanks. We insert the lexical-binding cookie in >> comp--run-async-workers, but maybe trampoline compilation doesn't use >> that? >> >> Andrea, any suggestions? > > Yep, I'm testing this I think it should work: > > modified lisp/emacs-lisp/comp.el > @@ -3363,7 +3363,7 @@ comp--final > nil ".el")) > (default-directory invocation-directory)) > (with-temp-file temp-file > - (insert ";; -*-coding: utf-8-emacs-unix; -*-\n") > + (insert ";; -*- coding: utf-8-emacs-unix; lexical-binding: t -= *-\n") > (mapc (lambda (e) > (insert (prin1-to-string e))) > expr)) Ok I think it works so I've installed it on master as baf0c822026. Daniel could you double check it works for your case? Thanks Andrea From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Jul 2025 07:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: mail@daniel-mendler.de, Andrea Corallo Cc: 78818@debbugs.gnu.org Received: via spool by 78818-submit@debbugs.gnu.org id=B78818.17517008367804 (code B ref 78818); Sat, 05 Jul 2025 07:34:01 +0000 Received: (at 78818) by debbugs.gnu.org; 5 Jul 2025 07:33:56 +0000 Received: from localhost ([127.0.0.1]:39106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uXxPH-00021k-37 for submit@debbugs.gnu.org; Sat, 05 Jul 2025 03:33:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39276) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uXxPE-00020j-W6 for 78818@debbugs.gnu.org; Sat, 05 Jul 2025 03:33:53 -0400 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 1uXxP8-0008V7-PT; Sat, 05 Jul 2025 03:33:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=0aAGvNb3C0A4BJAAB/7PrTOEWpXhoLsu89XrJkWSN2U=; b=nXINn4H+sU4LKZ1LhGZB zbn7rZsnEZPpxalDHlWWjeyTdxhrT/H4DehPZWxWA2qN8fUDeILEZWyFwAdnTF4e7oKTcujEh4UeB AavCeOtm1IBZsAu0qw6LvOFZFKdALZfbkOmxHiNffBAEDe4ZZouLI7W5DEEmHzhzblAUlgle4suaf b+OoLydAyp/yD45z+B01BpP2Ar8HiL4mnLNYIIUVpY/BlgpEO2zE/GxXYaGit2FW8IqGU6y35R9sV iY9XTnHRVlkQcSenNdU0lTQyi77AcgbzhuiAZk/s0WVrcmZ/9d3P2ND2mm18IXh8tSvR6PuwIneHI R1S/qaToMv3gYA==; Date: Sat, 05 Jul 2025 10:33:44 +0300 Message-Id: <86wm8nw0pz.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Andrea Corallo on Mon, 23 Jun 2025 16:09:13 -0400) References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> <87qzzhe06t.fsf@daniel-mendler.de> <86ecvhmekk.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ping! Daniel, could you please respond? > From: Andrea Corallo > Cc: Daniel Mendler , 78818@debbugs.gnu.org > Date: Mon, 23 Jun 2025 16:09:13 -0400 > > Andrea Corallo writes: > > > Eli Zaretskii writes: > > > >>> From: Daniel Mendler > >>> Cc: 78818@debbugs.gnu.org, Andrea Corallo > >>> Date: Wed, 18 Jun 2025 13:52:42 +0200 > >>> > >>> Eli Zaretskii writes: > >>> > >>> >> Date: Tue, 17 Jun 2025 20:38:20 +0200 > >>> >> From: Daniel Mendler via "Bug reports for GNU Emacs, > >>> >> the Swiss army knife of text editors" > >>> >> > >>> >> In the *Native-compile-Log* I see the following messages on a newly > >>> >> compiled Emacs 31 from the current Emacs master branch: > >>> >> > >>> >> Warning (files): Missing ‘lexical-binding’ cookie in "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". > >>> >> You can add one with ‘M-x elisp-enable-lexical-binding RET’. > >>> >> See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’ > >>> >> for more information. > >>> >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-72756e2d686f6f6b73_run_hooks_0.eln... > >>> > > >>> > Please show a recipe to reproduce this problem starting from "emacs -Q". > >>> > Or at least figure out and tell here compilation of what ELisp file > >>> > triggered this message (it sounds like it's part of your init > >>> > configuration?). I started "emacs -Q", but didn't see any such > >>> > messages that I could use as a starting point for investigation. > >>> > > >>> > Or, if I'm missing something, could you suggest how to investigate > >>> > this given the information you provided above? > >>> > >>> The trampoline .el file is generated by `comp--final' in comp.el. I > >>> found this by grepping for `emacs-int-comp'. The generated Elisp file > >>> doesn't include a `lexical-binding' cookie, which seems to trigger the > >>> warning. As far as I understand the trampolines are generated if native > >>> subrs are advised in the configuration. > >> > >> Thanks. We insert the lexical-binding cookie in > >> comp--run-async-workers, but maybe trampoline compilation doesn't use > >> that? > >> > >> Andrea, any suggestions? > > > > Yep, I'm testing this I think it should work: > > > > modified lisp/emacs-lisp/comp.el > > @@ -3363,7 +3363,7 @@ comp--final > > nil ".el")) > > (default-directory invocation-directory)) > > (with-temp-file temp-file > > - (insert ";; -*-coding: utf-8-emacs-unix; -*-\n") > > + (insert ";; -*- coding: utf-8-emacs-unix; lexical-binding: t -*-\n") > > (mapc (lambda (e) > > (insert (prin1-to-string e))) > > expr)) > > Ok I think it works so I've installed it on master as baf0c822026. > > Daniel could you double check it works for your case? > > Thanks > > Andrea > From unknown Sat Aug 16 12:44:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines Resent-From: Daniel Mendler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Jul 2025 08:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78818 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Andrea Corallo , 78818@debbugs.gnu.org Received: via spool by 78818-submit@debbugs.gnu.org id=B78818.175170257325101 (code B ref 78818); Sat, 05 Jul 2025 08:03:02 +0000 Received: (at 78818) by debbugs.gnu.org; 5 Jul 2025 08:02:53 +0000 Received: from localhost ([127.0.0.1]:39394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uXxrI-0006Wm-Rs for submit@debbugs.gnu.org; Sat, 05 Jul 2025 04:02:53 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:54157 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uXxrF-0006VW-Fh for 78818@debbugs.gnu.org; Sat, 05 Jul 2025 04:02:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=52gBtRh2ZK35w0KSNEGcaBbg3E0qguK6/RAv2pkbRYw=; b=G/ZBD8X3N3WNSuuMqrkcdeigR6 1C7/G0IVoRwPQpnP8dneIOvdrCKqAvrgEe/MluYoVdZ7NTKcEqix1rczkYde24XnEA2ixxvZVlXdb fzThZSxIiaMc1jByMAc1MGuyQFPepxCXUhZFhFw4+ivpEqNmHVMyEcwNLj8HukZoGngI=; From: Daniel Mendler In-Reply-To: <86wm8nw0pz.fsf@gnu.org> References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> <87qzzhe06t.fsf@daniel-mendler.de> <86ecvhmekk.fsf@gnu.org> <86wm8nw0pz.fsf@gnu.org> Date: Sat, 05 Jul 2025 10:02:42 +0200 Message-ID: <87a55jvzdp.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I will check if the issue still occurs when I recompile Emacs the next time. Andreas fix looks correct, since it adds the missing cookie. From my side the issue can be closed. Thanks! Eli Zaretskii writes: > Ping! Daniel, could you please respond? > >> From: Andrea Corallo >> Cc: Daniel Mendler , 78818@debbugs.gnu.org >> Date: Mon, 23 Jun 2025 16:09:13 -0400 >>=20 >> Andrea Corallo writes: >>=20 >> > Eli Zaretskii writes: >> > >> >>> From: Daniel Mendler >> >>> Cc: 78818@debbugs.gnu.org, Andrea Corallo >> >>> Date: Wed, 18 Jun 2025 13:52:42 +0200 >> >>> >> >>> Eli Zaretskii writes: >> >>> >> >>> >> Date: Tue, 17 Jun 2025 20:38:20 +0200 >> >>> >> From: Daniel Mendler via "Bug reports for GNU Emacs, >> >>> >> the Swiss army knife of text editors" >> >>> >> >> >>> >> In the *Native-compile-Log* I see the following messages on a new= ly >> >>> >> compiled Emacs 31 from the current Emacs master branch: >> >>> >> >> >>> >> Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie= in "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQ= kOM2.el". >> >>> >> You can add one with =E2=80=98M-x elisp-enable-lexical-binding RE= T=E2=80=99. >> >>> >> See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98= (elisp)Converting to Lexical Binding=E2=80=99 >> >>> >> for more information. >> >>> >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--tr= ampoline-72756e2d686f6f6b73_run_hooks_0.eln... >> >>> > >> >>> > Please show a recipe to reproduce this problem starting from "emac= s -Q". >> >>> > Or at least figure out and tell here compilation of what ELisp file >> >>> > triggered this message (it sounds like it's part of your init >> >>> > configuration?). I started "emacs -Q", but didn't see any such >> >>> > messages that I could use as a starting point for investigation. >> >>> > >> >>> > Or, if I'm missing something, could you suggest how to investigate >> >>> > this given the information you provided above? >> >>> >> >>> The trampoline .el file is generated by `comp--final' in comp.el. I >> >>> found this by grepping for `emacs-int-comp'. The generated Elisp file >> >>> doesn't include a `lexical-binding' cookie, which seems to trigger t= he >> >>> warning. As far as I understand the trampolines are generated if nat= ive >> >>> subrs are advised in the configuration. >> >> >> >> Thanks. We insert the lexical-binding cookie in >> >> comp--run-async-workers, but maybe trampoline compilation doesn't use >> >> that? >> >> >> >> Andrea, any suggestions? >> > >> > Yep, I'm testing this I think it should work: >> > >> > modified lisp/emacs-lisp/comp.el >> > @@ -3363,7 +3363,7 @@ comp--final >> > nil ".el")) >> > (default-directory invocation-directory)) >> > (with-temp-file temp-file >> > - (insert ";; -*-coding: utf-8-emacs-unix; -*-\n") >> > + (insert ";; -*- coding: utf-8-emacs-unix; lexical-binding: = t -*-\n") >> > (mapc (lambda (e) >> > (insert (prin1-to-string e))) >> > expr)) >>=20 >> Ok I think it works so I've installed it on master as baf0c822026. >>=20 >> Daniel could you double check it works for your case? >>=20 >> Thanks >>=20 >> Andrea >>=20 From unknown Sat Aug 16 12:44:32 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel Mendler Subject: bug#78818: closed (Re: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines) Message-ID: References: <864ivrvvka.fsf@gnu.org> <87sejy43j7.fsf@daniel-mendler.de> X-Gnu-PR-Message: they-closed 78818 X-Gnu-PR-Package: emacs Reply-To: 78818@debbugs.gnu.org Date: Sat, 05 Jul 2025 09:26:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1751707562-8397-1" This is a multi-part message in MIME format... ------------=_1751707562-8397-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 78818@debbugs.gnu.org. --=20 78818: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78818 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1751707562-8397-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 78818-done) by debbugs.gnu.org; 5 Jul 2025 09:25:22 +0000 Received: from localhost ([127.0.0.1]:40468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uXz97-00025a-5E for submit@debbugs.gnu.org; Sat, 05 Jul 2025 05:25:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38060) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uXz93-00021M-UV for 78818-done@debbugs.gnu.org; Sat, 05 Jul 2025 05:25:18 -0400 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 1uXz8x-0006cP-Pg; Sat, 05 Jul 2025 05:25:11 -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=nNgc2Y/P6RTuivsVGwztSv06I3/DD4YnY8rj5Q5Yhys=; b=If9sYT7FltOI h/gwJVpHoQvHdhhYp5pwrFma6JL5cv7ZCrvXq+Q28sJzijplMRYmds7lgCCFPrTmvFeEO1yEtDkME G37TbeHzi2YRnBGnGO1C4ZJYSUyJ1Pr3iHr1S3nXfx0Sgz0dp5S7KEVhDcNciZDye3m0ps/MpxBME UtZoR/2Rr3wMGOKB5mfcyh3KuvVkjpm7jom/qPCOgjrHgtj35iK3ZqMl62r5DrdJNXLVFZJVogPK3 T5gX088Oya6cTcEiKH6wJHMHSAfa/morOXYSqH9hL6q9DwlDjlldcLkZTHZWWzTSJHe/B8m3+dZ8n bpVzkNy206X6F4rcWrY8og==; Date: Sat, 05 Jul 2025 12:25:09 +0300 Message-Id: <864ivrvvka.fsf@gnu.org> From: Eli Zaretskii To: Daniel Mendler In-Reply-To: <87a55jvzdp.fsf@daniel-mendler.de> (message from Daniel Mendler on Sat, 05 Jul 2025 10:02:42 +0200) Subject: Re: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> <87qzzhe06t.fsf@daniel-mendler.de> <86ecvhmekk.fsf@gnu.org> <86wm8nw0pz.fsf@gnu.org> <87a55jvzdp.fsf@daniel-mendler.de> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78818-done Cc: acorallo@gnu.org, 78818-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Daniel Mendler > Cc: Andrea Corallo , 78818@debbugs.gnu.org > Date: Sat, 05 Jul 2025 10:02:42 +0200 > > I will check if the issue still occurs when I recompile Emacs the next > time. Andreas fix looks correct, since it adds the missing cookie. From > my side the issue can be closed. Thanks! Thanks, closing. Pleasereopen if you find the bug still not solved. ------------=_1751707562-8397-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jun 2025 18:38:54 +0000 Received: from localhost ([127.0.0.1]:34761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRbCw-00015I-2v for submit@debbugs.gnu.org; Tue, 17 Jun 2025 14:38:54 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55710) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRbCr-00014c-Ja for submit@debbugs.gnu.org; Tue, 17 Jun 2025 14:38:53 -0400 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 1uRbCl-0001J2-Li for bug-gnu-emacs@gnu.org; Tue, 17 Jun 2025 14:38:44 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uRbCj-0006aI-Qt for bug-gnu-emacs@gnu.org; Tue, 17 Jun 2025 14:38:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=G3HObaO4CYSvhDTecM7Mh/YIy23nzpgRWp40hVqKkp0=; b=SCa3iBeesireNczh0Z5kvHH6XZ bArgYZHM9EsbFbYJ0Q9nEYzoN4lX9XFp5qmpVBg6lUq14FWIbSHwZjZvsXCyDa1/ks92b3ZOEEpFS RLvVmWBpf0cdPV3YRsF8n8qWyFof9ZNdjE1z+lvkGU66drHoDxE8sX+S1yEEkcbbGvAg=; From: Daniel Mendler To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Missing lexical-binding cookies when compiling trampolines Date: Tue, 17 Jun 2025 20:38:20 +0200 Message-ID: <87sejy43j7.fsf@daniel-mendler.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a01:4f8:c012:9177::1; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) In the *Native-compile-Log* I see the following messages on a newly compiled Emacs 31 from the current Emacs master branch: Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie in "/tmp/= emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET=E2=80=99. See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(elisp)Con= verting to Lexical Binding=E2=80=99 for more information. Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-7= 2756e2d686f6f6b73_run_hooks_0.eln... In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.4) of 2025-06-17 built on host Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Debian GNU/Linux 13 (trixie) Configured using: 'configure --prefix=3D$HOME/.local/share/emacs --without-compress-install --with-tree-sitter --with-native-compilation --with-dbus --without-selinux --without-threads --disable-gc-mark-trace --without-gsettings --without-gpm --with-cairo --with-cairo-xcb --with-xinput2 --with-x-toolkit=3Dgtk3 --without-toolkit-scroll-bars' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: LIMPLE ------------=_1751707562-8397-1--