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 08:46:54 +0100 Message-ID: <87r0gqa175.fsf@epfl.ch> References: <8734t6n4r5.fsf@web.de> <8734t6shpa.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25949"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: 69533@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 04 08:47:45 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 1rh333-0006W0-IS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 04 Mar 2024 08:47:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rh32s-00036I-CR; Mon, 04 Mar 2024 02:47: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 1rh32q-000364-HK for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 02:47:32 -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 1rh32q-0003Mp-83 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 02:47:32 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rh33J-0004Nf-LA for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2024 02:48:01 -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 07:48:01 +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.170953845416791 (code B ref 69533); Mon, 04 Mar 2024 07:48:01 +0000 Original-Received: (at 69533) by debbugs.gnu.org; 4 Mar 2024 07:47:34 +0000 Original-Received: from localhost ([127.0.0.1]:41691 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rh32s-0004Ml-3b for submit@debbugs.gnu.org; Mon, 04 Mar 2024 02:47:34 -0500 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:37986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rh32q-0004MN-2N for 69533@debbugs.gnu.org; Mon, 04 Mar 2024 02:47:32 -0500 Original-Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5668db0720fso914249a12.0 for <69533@debbugs.gnu.org>; Sun, 03 Mar 2024 23:47:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709538416; x=1710143216; h=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=7dunZ0y0fjTNHgQ/Jyg2QqIJo/5ieKYVfFWutZaAdZc=; b=LLkxnfXU/MrPz387ggro5HTN0mNu90c7O2tkf3EoAoFWaTKML39ijamfrBwTzrFSHR yn5gAXK+5/Kcpl+LO8ccEXA9CzIx8+9ZdTTaa2xieblstqyxkxz9K4KbXspVRIdf+MSJ 4ckLniL1Lnb7c2BMl/66TdboUp5pmxzQxUovKlrijNNk/ZmxAp+/z5fW2EBaNq+EJbAU 9wKNRvlPCN9Jzf6fTPLh3w+Gkhb/ZPpdHeSX9oRY+UIS9tgDMwvySZeeORVghzS5aX8m UhXWpaSZQ+Iu0G5RsCznwbTVyuP/Tf822XFGvm2FW0OnlagYzk6NtPSH882qdqfW/1/b enDQ== X-Gm-Message-State: AOJu0Yy3HdIiIJLHqtCQMNgbN9YbWhHCsFe6aF+OcyH6b0ZOwiyYR82K CZBGH9xPSPkrPHNhqx+s2OsbUCVK+fWLfdocAVh04yPpbDi0qJD6irBC7Pia X-Google-Smtp-Source: AGHT+IEPRl40gpc+gd2kuqNNlFUxuURD7fz8+YipBrylfwqCJ8ctVhpTtsZhmcKvg28VD9htjyVSng== X-Received: by 2002:a17:907:c316:b0:a45:566a:c36c with SMTP id tl22-20020a170907c31600b00a45566ac36cmr932434ejc.1.1709538416101; Sun, 03 Mar 2024 23:46:56 -0800 (PST) Original-Received: from localhost ([2001:620:618:5c0:2:80b3:0:65c]) by smtp.gmail.com with ESMTPSA id r17-20020a170906705100b00a44f0406c8bsm2057827ejj.60.2024.03.03.23.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 23:46:55 -0800 (PST) In-Reply-To: <8734t6shpa.fsf@web.de> (Michael Heerdegen via "Bug reports for GNU Emacs, the Swiss army knife of text editors"'s message of "Mon, 04 Mar 2024 06:13:05 +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:280983 Archived-At: Michael Heerdegen [2024-03-04 06:13 +0100] wrote: > Michael Heerdegen writes: > >> (byte-optimize-apply '(apply '(+ 1 2))) >> ==> (funcall '(+ 1 2) '+ '1 '2) ; Ouch! > > I'm adding Mattias to the discussion - he had changed > `byte-optimize-apply' after this new convention (which I find > irritating, too) had been introduced. 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. > I guess since byte compilation of such forms is (at least partly) > broken, not many people are actually using it. FWIW, my guilty pleasure is using this calling convention with a non-literal form, e.g.: (define-advice foo (:around (&rest args) my-foo) (with-something (apply args))) This has always byte-compiled without issue. Of course, I'm not married to this convention. Thanks, -- Basil