From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#69533: 30.0.50; Wrong byte compilation of a certain apply syntax Date: Mon, 04 Mar 2024 13:52:55 +0100 Message-ID: <87le6y88go.fsf@epfl.ch> References: <8734t6n4r5.fsf@web.de> <8734t6shpa.fsf@web.de> <87r0gqa175.fsf@epfl.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13839"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , 69533@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 04 13:53:50 2024 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 1rh7pF-0003Sm-QK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Mar 2024 13:53:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rh7p0-0006cL-Gc; Mon, 04 Mar 2024 07:53:34 -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 1rh7oz-0006bM-AD for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 07:53:33 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rh7oy-0006Un-Up for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 07:53:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rh7pS-00020C-Fm for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 07:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2024 12:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69533 X-GNU-PR-Package: emacs Original-Received: via spool by 69533-submit@debbugs.gnu.org id=B69533.17095568157660 (code B ref 69533); Mon, 04 Mar 2024 12:54:02 +0000 Original-Received: (at 69533) by debbugs.gnu.org; 4 Mar 2024 12:53:35 +0000 Original-Received: from localhost ([127.0.0.1]:42502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rh7p0-0001zO-Md for submit@debbugs.gnu.org; Mon, 04 Mar 2024 07:53:34 -0500 Original-Received: from mail-ed1-f51.google.com ([209.85.208.51]:38217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rh7oy-0001zA-DN for 69533@debbugs.gnu.org; Mon, 04 Mar 2024 07:53:33 -0500 Original-Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-567312db4aeso376248a12.1 for <69533@debbugs.gnu.org>; Mon, 04 Mar 2024 04:53:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709556777; x=1710161577; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2LCY8sckl3QNu8Y6/AGpiX3D5YDbkJmT2xm39Rhbls8=; b=oj/TPIBfsbu6PUc0gjkwXCl8ESImL0S3i7N9RVODc/eIYR5eRWhAuEqTB/fc3rcphe 6VnIBIIM89jz/t63ckxVm3/BQp7Y8LgItbhD5z/upUiXIc7/9tYaCxDNl/E1qjHyw/ib cX9N9PtYx5pgzLTfS+l9Er95dBngaa13I+67IGkpSqdbgOOXDKTUvcgeTJ9vJioCfFnD 68byhrqebcWcfshmjb3XJHadD3uQtaqoEp4NcXfT6sHNTY6df79pe8jhZYtr5Qtks+gg 62+kssFp10x7Hkm8QKikYkW5uUgxdrFDyxjNX97NmIuWBO7CZYKET1cDsVYqO9kJNj+U /22A== X-Gm-Message-State: AOJu0YxpnNJMV5cKg0YWtMIIt6Jd5qFzdWKTEDCf1cBXgp7kY8HncDQs Y19FKX68Lcj9fjgKM65drZUwZa24th9MHvIRGDHwv7fzr9+b9cGK X-Google-Smtp-Source: AGHT+IGlmIQt3LtoY9NnFH4TgninmcSm4ATjp08fkspGue8Vv6AlBqrAF8KUTkD5VLabXwv5Otx4kA== X-Received: by 2002:a17:907:a585:b0:a45:67bd:72b8 with SMTP id vs5-20020a170907a58500b00a4567bd72b8mr1226494ejc.6.1709556776607; Mon, 04 Mar 2024 04:52:56 -0800 (PST) Original-Received: from localhost ([2001:620:618:5c0:2:80b3:0:65c]) by smtp.gmail.com with ESMTPSA id cw5-20020a170907160500b00a444481e031sm4703710ejd.210.2024.03.04.04.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 04:52:56 -0800 (PST) In-Reply-To: (Andreas Schwab's message of "Mon, 04 Mar 2024 10:39:51 +0100") 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:281001 Archived-At: Andreas Schwab [2024-03-04 10:39 +0100] wrote: > On M=C3=A4r 04 2024, Basil L. Contovounesios wrote: > >> Just curious: which convention are you referring to, and why do you say >> it's new? AFAICT the only recent Emacs version which accepted >> (apply '(+ 1 2)) without any complaint is Emacs 28. > > It was added in commit 8edd4a2b64e, since Emacs 24. Right, but that doesn't mean literal forms survive byte-compilation: $ cd "$(mktemp -d)" $ cat << EOF > foo.el > ; -*- lexical-binding: t -*- > (message "%s" (apply '(1+ 0))) > EOF $ emacs-24.5 -Q -batch -f batch-byte-compile foo.el In toplevel form: foo.el:2:1:Warning: `(1+ 0)' is a malformed function Wrote /tmp/tmp.aFbeBGQj7q/foo.elc $ emacs-24.5 -Q -script foo.elc Invalid function: (1+ 0) By contrast: $ emacs-28.2 -Q -batch -f batch-byte-compile foo.el $ emacs-28.2 -Q -script foo.elc 1 --=20 Basil