From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#40968: 28.0.50; (apply nil) Date: Wed, 6 May 2020 11:25:19 +0000 Message-ID: References: <69F27CB6-AB58-4E66-84FB-978278F7A757@acm.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000136f1b05a4f90760" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="23182"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , 40968@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 06 13:28:55 2020 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 1jWIER-0005xP-1i for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 13:28:55 +0200 Original-Received: from localhost ([::1]:45808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWIEQ-0006Mm-3B for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 07:28:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWICc-00053F-Ao for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 07:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWICb-0007PU-UR for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 07:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWICb-0001nv-RG for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 07:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 May 2020 11:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40968 X-GNU-PR-Package: emacs Original-Received: via spool by 40968-submit@debbugs.gnu.org id=B40968.15887643646866 (code B ref 40968); Wed, 06 May 2020 11:27:01 +0000 Original-Received: (at 40968) by debbugs.gnu.org; 6 May 2020 11:26:04 +0000 Original-Received: from localhost ([127.0.0.1]:38751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWIBf-0001mg-Jn for submit@debbugs.gnu.org; Wed, 06 May 2020 07:26:03 -0400 Original-Received: from mail-oi1-f194.google.com ([209.85.167.194]:45391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWIBd-0001m5-Ks for 40968@debbugs.gnu.org; Wed, 06 May 2020 07:26:02 -0400 Original-Received: by mail-oi1-f194.google.com with SMTP id k133so1174475oih.12 for <40968@debbugs.gnu.org>; Wed, 06 May 2020 04:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uEkhzfa4tHZ7MhGcLhcq4HC9eIC/WkqYi8A3WT73Puk=; b=tAsXNIuRdNIA4L1R9Y8dWlj4q3SxBze6RQxiP3L6hADClMRJv5pm2qoGdPzs1AfCkB vNbBqc2qaC9mxf25sQcOUd2BDJTNl1jIaMAekxsWITw5j3C5tDD5zmDggDXL1YYzMiHw YtRgkp5lVR0YC1Wf8Ol2UX1TP7vOktpLmsS9Yzsrv0jbvsEE3XoUWVVvhO3TbrAIrVQA 1goxnzuC6qGqT9MNSfP52/nmGQBa125LtZvFPhVd34LYYezrXInq2i53Q/xr7TQmROOF QvbF8Sv3iPgalL+53vlL0ptekhHCACfH9olHkq1sOIwPNgfkeY91/zMxMBpp2f8l3A0g zwkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uEkhzfa4tHZ7MhGcLhcq4HC9eIC/WkqYi8A3WT73Puk=; b=f0vZDNQXI/OZmTocDtbe5KC4VX7Vv622D5JxO2TxjyVvleeNOMnCI+6o05hHxrG6jn VyGFcqkeDPU+nnXlGh8ctdNMjj1qjf/HtXk1dZ9pa2+msmaYK8K8Q28Pew4iibcaHbLY WNcH2ZtDe4DtuDI5hq38VPS2fUASyllTVkESl4pk1shb4IFUMiw3ZtVqonzL5rbcTq6r HSl2nwnMBZ+wZX3I4LQi7U8v2WZRHDFgGhKPOnFnF3EZYM162ohh1SfMBMZEjPLim+7q XDafbqgx4Mnyo3ZnY8hdjKxKH7YzRF7eeMMxmxYXgg7cTopKhJz6fPGYzi3wltYfxipW wzZA== X-Gm-Message-State: AGi0PuZOiL7gPVbWV9DQ0/31qxDxK0Zn17k7XSazTLmNXQALMYpaPJdk /vJC7ROTcf7XZ15OvuS/Y1rSf17LRvFyZGd+cFg= X-Google-Smtp-Source: APiQypJgjQ5IQm4Ew1BjcE88F9E8kwvoHudgZQZzhrOQSuarWe4d6MgGfC8j/s4H1A8WFsyfuJsjR6VOqE79MrQq2Io= X-Received: by 2002:aca:5614:: with SMTP id k20mr2322307oib.30.1588764356072; Wed, 06 May 2020 04:25:56 -0700 (PDT) In-Reply-To: <69F27CB6-AB58-4E66-84FB-978278F7A757@acm.org> 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" Xref: news.gmane.io gmane.emacs.bugs:179801 Archived-At: --000000000000136f1b05a4f90760 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 6, 2020 at 10:18 AM Mattias Engdeg=C3=A5rd w= rote: > > The byte compiler also gets single-argument `apply' "wrong", so the lat= ter would seem to be the best option, to me. > > Strong agreement! An 'apply' that actually does 'eval'... Well, it's not quite `eval': the arguments aren't evaluated again. The obvious single-character patch results in four warnings when rebuilding Emacs, all of which seem to use the previous semantics, so I think it might be best to document this behavior and simply catch (apply nil). --000000000000136f1b05a4f90760 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Require-at-least-two-arguments-for-Fapply.patch" Content-Disposition: attachment; filename="0001-Require-at-least-two-arguments-for-Fapply.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_k9v98lr10 RnJvbSA4OThhZjM5NGZjYmRlNTdjYTNkMDhlMzY0OGI2MmZlMGIzZjQxOTExIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBXZWQs IDYgTWF5IDIwMjAgMTE6MDg6MjkgKzAwMDAKU3ViamVjdDogW1BBVENIXSBSZXF1aXJlIGF0IGxl YXN0IHR3byBhcmd1bWVudHMgZm9yIEZhcHBseQoKKiBzcmMvZXZhbC5jIChGYXBwbHkpOiBSZXF1 aXJlIGF0IGxlYXN0IHR3byBhcmd1bWVudHMsIHRvIHByZXZlbnQKY3Jhc2hlcyB3aGVuIChhcHBs eSBuaWwpIGlzIGV2YWx1YXRlZC4KKiBsaXNwL3Byb2dtb2Rlcy9lYnJvd3NlLmVsIChlYnJvd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