From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#40968: 28.0.50; (apply nil) Date: Wed, 6 May 2020 12:28:21 -0700 (PDT) Message-ID: References: <85a72khq90.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , 40968@debbugs.gnu.org, Noam Postavsky To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 06 21:29:10 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 1jWPjC-000QyU-Ji for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 21:29:10 +0200 Original-Received: from localhost ([::1]:35824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWPjB-0003sV-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 May 2020 15:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWPj4-0003sJ-75 for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 15:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWPj3-00079y-UZ for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 15:29:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jWPj3-0001l5-Qp for bug-gnu-emacs@gnu.org; Wed, 06 May 2020 15:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 May 2020 19:29: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.15887933106698 (code B ref 40968); Wed, 06 May 2020 19:29:01 +0000 Original-Received: (at 40968) by debbugs.gnu.org; 6 May 2020 19:28:30 +0000 Original-Received: from localhost ([127.0.0.1]:41212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWPiY-0001jx-G4 for submit@debbugs.gnu.org; Wed, 06 May 2020 15:28:30 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:53100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jWPiX-0001jj-9S for 40968@debbugs.gnu.org; Wed, 06 May 2020 15:28:29 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 046JRjPJ100670; Wed, 6 May 2020 19:28:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=LhTjr9XaePT09Rp43j9YDDYYYNuawltu4JnDW7P3fHw=; b=XzzO5zGaxjGB5jcys3t7mqce6R8+3H8yKTmCrbob1dkrrSTOg40YsCuGq0g88k5UgyJw n9hCLRpyTtd9EcbIHv8xetkbzuOOEdwSgCn0YFAzIj2Rge7lmNDKao2d1Xa1EVxbOEG7 jyX4SxQ43l8WuQrQs+6ZKPS0pLJ/ol87UgLby7+VJUTyj/QxsW/zQ/92wXCwnRHSKRxJ hE2jMCcybqcCn0N15UW4PqpcG9iB0s7syNbVchTTGIY7CnvpqW3/H7v7L0RJ2STmn0Vj uP0MlT/M4Lal4nLtOePRcmz2WTAK9QLPHWrKKRgAazCHl8KDv5kUVTHBhPdT3g9eg7g/ sg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 30s1gnc5kr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 May 2020 19:28:23 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 046JQqQu179283; Wed, 6 May 2020 19:28:23 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 30sjdw6k3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 06 May 2020 19:28:22 +0000 Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 046JSMrM001954; Wed, 6 May 2020 19:28:22 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9613 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 mlxlogscore=831 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005060157 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9613 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 phishscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 mlxlogscore=885 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005060157 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:179842 Archived-At: > > And if Elisp follows that (which I think it should, > > unless someone can present a good use case for just > > (apply FUNCTION)), then it should raise an error if > > there are not at least two args. >=20 > Note that single-argument apply in current Elisp is not (apply > FUNCTION) but (apply LIST-OF-FUNCTION-PLUS-ARGS). >=20 > (apply '+) is an error. > (apply '(+)) is 0. >=20 > That's why the problem with (apply nil) arose. I think (apply '(+)) should raise an error, because (a) the first arg is not a function and (b) it's missing a second arg. I think (apply ()) should raise an error for the same reason: nil is not a function, and there's no second arg.