From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vibhav Pant Newsgroups: gmane.emacs.devel Subject: Re: byte-compile-preprocess+cconv seem to mutate self evaluating forms in expanded macros Date: Fri, 20 Jan 2023 18:43:48 +0530 Message-ID: <516977d67fa6627e5db9922587918eb1c492d7e9.camel@gmail.com> References: <72894d80f874ba934fab76ada4ab366c27831d8d.camel@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-PZDDdqX7NRPOUHKTz/9K" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7022"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.46.3 Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 20 14:16:07 2023 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 1pIrFX-0001hd-8c for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Jan 2023 14:16:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIrDj-0006hs-Sq; Fri, 20 Jan 2023 08:14:16 -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 1pIrDV-0006YI-Fj for emacs-devel@gnu.org; Fri, 20 Jan 2023 08:14:01 -0500 Original-Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIrDQ-0000iq-NX for emacs-devel@gnu.org; Fri, 20 Jan 2023 08:14:01 -0500 Original-Received: by mail-yb1-xb2e.google.com with SMTP id p15so2966976ybu.7 for ; Fri, 20 Jan 2023 05:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:from:to:cc:subject:date:message-id:reply-to; bh=8mJa6OqdCIjwd8a7LrG65nnvR1O01zoyVMCGHjvM9wA=; b=bQ/E21Vd1sZ3/4moLfdt22HdYP1hCCvhu+Ll54TkkQVy+FkwNwMDg54M3eQUbirMxu Mm4JFVurNEBvQIMHD3b2M9kuNhjzWaFSiQVIkuCULXV2Lgdd6Ym0sH5Y7y4/4UFPbgoQ WFXld5qoEu0XBbTrMtKOWG2JVxYxISr1iiWXHT2uv/3zu6vNdfQQV7ukfsO+m9tZPaVV 5UWfQUF0XWLIkWLAl6d+Du42DJ5Fj5NiDyhVh+J3aI75o5DOJb89UkhiohT2m3b9KlHl zt4JUnphSc9N/jOnY9VBnq4ygjWDRVXGBmrrRgG7u0qUg42/lp4XY1NPF52EuMgP3/0E JivA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:references:in-reply-to:date:cc:to:from :subject:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8mJa6OqdCIjwd8a7LrG65nnvR1O01zoyVMCGHjvM9wA=; b=D0mWA+ZOnfuMVGC4ipTRGNO0St4H/8HmXeOz0wrAMUSJdF74kLn1S5mA8MVHJfl24m EMj45BxHQqOa032IUXlmlMlTk+sZGCNAfMzkG3qyGaTf3QnhDYnXgJGpv3EHeTnljD1L X+hfoO09ELdYWE02E/QNYkaKR0bNWYfCFerZmBs4rB2OvUEs+u5fSATALIeWLyhqlQ0Z SxQI020FRD1wSxIjn8pWG0fwGJUfR7CvEFvo3n4EBNOzjzAMmk3F0Rh0gLPv7sL5k3SF 1iRV/GftD8S5gMIFMgeK0D+EEyXp6WR7DZ1b9cWZPvjJTiryplqg06yycbKBHFmBiEWY Zt1A== X-Gm-Message-State: AFqh2koL4TnsoI0KmqGjC2VVelUgEd1hz7okv2D+1XEyuPBdiBm7p1j9 NjqTYQNcLNTphLVtgg7FEOQ= X-Google-Smtp-Source: AMrXdXt36Pm58YNaWBILTkhlrfRvcTrpAPX81XLR5zwGN9vX3oazXxV2V7B5qoRL9Q1s5nWR8u8WkQ== X-Received: by 2002:a25:cf05:0:b0:801:687b:9632 with SMTP id f5-20020a25cf05000000b00801687b9632mr1283539ybg.4.1674220435386; Fri, 20 Jan 2023 05:13:55 -0800 (PST) Original-Received: from vibhavp-mbp.local ([182.69.182.193]) by smtp.gmail.com with ESMTPSA id d8-20020ae9ef08000000b0070905e2674dsm2176931qkg.76.2023.01.20.05.13.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Jan 2023 05:13:54 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=vibhavp@gmail.com; helo=mail-yb1-xb2e.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, 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:302574 Archived-At: --=-PZDDdqX7NRPOUHKTz/9K Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2023-01-20 at 08:03 -0500, Stefan Monnier wrote: > Hi, >=20 > > While working on scratch/comp-static-data, which adds support for > > native compiling self evaluating forms in Lisp code as static > > consts in > > the eln (with immutability enforced additionally by > > `CHECK_IMPURE`), I > > noticed that compiling minor-mode definitions would result in a > > `pure_write_error`. This arises as cconv-closure-convert, called > > from > > `byte-compile-preprocess` would call `setcar` on a self evaluating > > interactive form as part of the minor-mode's function body. >=20 > Sounds like a bug.=C2=A0 Can you `M-x report-emacs-bug` (and put me in > `X-Debbugs-Cc:`) so we get a bug#nb for it? >=20 >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Stefan >=20 Hi Stefan, The error doesn't come up on master, because we don't enforce the immutability of self evaluating forms. Becuase the same files get compiled just fine on master, does it still count as a bug? Thanks, Vibhav --=20 Vibhav Pant vibhavp@gmail.com GPG: 7ED1 D48C 513C A024 BE3A 785F E3FB 28CB 6AB5 9598 --=-PZDDdqX7NRPOUHKTz/9K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEftHUjFE8oCS+Onhf4/soy2q1lZgFAmPKk4wACgkQ4/soy2q1 lZjPbQf8Ccm5zUgPFXs+I0Tvdtv55GXej+rE0NcHE5jjF+gizsmWdXNYpKWfaCBU GecfIJFU7gfhiL1cai+Juze6jU9Uf/RsRKKZ98h6JC/uncka4TB9BF1VvGJNc4RY EswvbJcgdylQ7s7Ypy5+tir/waXKzTyQR5Ya0aShg7XvWc/vXs1AKbmAqtyQQ1Z9 M9FG9DTFh0lU9xEYdhIrqc3IjosHuVVDoh9L9NBKYJQemUMSqwHlx2cEygEU2Cih pKuKXLVy0PErSHaheC9wjZLhDweDGWA+vNxT4drytOahiBjF2AJT4mtY9YZ/L97F 73mZK6/oJo0eNwgEiAfSYPbCabvlkQ== =EvmA -----END PGP SIGNATURE----- --=-PZDDdqX7NRPOUHKTz/9K--