From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#53227: master: Wrong error message with M-: (funcall). Date: Thu, 13 Jan 2022 10:13:45 +0100 Message-ID: <874k683smu.fsf@gmail.com> References: 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="11673"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53227@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 13 10:14:11 2022 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 1n7wBP-0002rX-2Q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Jan 2022 10:14:11 +0100 Original-Received: from localhost ([::1]:34192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7wBN-0006sR-Hg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Jan 2022 04:14:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7wBG-0006sJ-15 for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 04:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7wBF-0005Tt-OA for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 04:14:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7wBF-00019S-LY for bug-gnu-emacs@gnu.org; Thu, 13 Jan 2022 04:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jan 2022 09:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53227 X-GNU-PR-Package: emacs Original-Received: via spool by 53227-submit@debbugs.gnu.org id=B53227.16420652354404 (code B ref 53227); Thu, 13 Jan 2022 09:14:01 +0000 Original-Received: (at 53227) by debbugs.gnu.org; 13 Jan 2022 09:13:55 +0000 Original-Received: from localhost ([127.0.0.1]:60189 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7wB9-00018y-Fv for submit@debbugs.gnu.org; Thu, 13 Jan 2022 04:13:55 -0500 Original-Received: from mail-wm1-f47.google.com ([209.85.128.47]:42730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7wB6-00018c-T8 for 53227@debbugs.gnu.org; Thu, 13 Jan 2022 04:13:53 -0500 Original-Received: by mail-wm1-f47.google.com with SMTP id ay4-20020a05600c1e0400b0034a81a94607so2279769wmb.1 for <53227@debbugs.gnu.org>; Thu, 13 Jan 2022 01:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=q7z2z76PgcXHGpFpCVCPRv7ZnsQJ5HLBP5YBtGOwn6g=; b=G9q+SZsw/zJQ8LkxxsIeuhDg+vO3VfU2u5bqBasqdhUuCl9XaqKWJjM9W//J1fX+c7 GPuPxOkOCbMrNkQvnwEfzUCIdW8aBZwEYcqdbBU5+Wx6lOVaSfuWxXFQtkRkX4L4o3SP b9DuElTlyjf1CF342OkZGFVJLrTCZl3ZZUEBIdE8wdHk6T4n+HwkcjeS3VKq6ftb4GQv vo5KRk5gmY1n5ZJRu93286EfL8SvvOjd0KQB9Jyf240fzQIXzy43K9/0VaLvDArrzlSD C24b8dPb0MNMFR8ysrTcWhwEvr0yBUwYSq6AgqM6Ka5M7wZTTI2dy5FNrqr04KT3OiD2 j5HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=q7z2z76PgcXHGpFpCVCPRv7ZnsQJ5HLBP5YBtGOwn6g=; b=D4hc+q/F3dFUJSd5WWWl30oJC0Bp+a1XmvjCGrpVxPZAS1v0VPUkSRPNGMlW65KHax c48bFPNotxCFpsvsyBVpx1xMUzzXd0cb6y0AAl0RnVVjMa1dh9/OlwZx40318dPjZYQT 0iXD7KE0xLeCNOFcm3b4h0QfhYntvziRpTxvm9GLusDg7nOKmerNKr+EW+rT7CYmuPqq k6gvHR0Y0IBVy3JxRTqFjzI1zNEUH5IaWY546hMbkTReQPyWv3u6HKNKaVhVjci0MehU 4NA4psuQ6I6/hvpAFglIBe3QT5Azf9MGP5MhTPvI3cHnRhUDmZQVbzGx2ukDdFfygCke lcOw== X-Gm-Message-State: AOAM533/uBdTGy//dKhqusNihkyV5c7HQwrXOdMlt8Ve+uy6OHNwNYcF KQ6stI26+Wuw8l90vtEDyYXJnnK6548= X-Google-Smtp-Source: ABdhPJyPEQLZvZJzM3AsUbSAANdNNchxiYxIa1sP4wQtJBwSKpHQ8c3tQojAH1W4pr9+kJ3cEjMTpg== X-Received: by 2002:a7b:c931:: with SMTP id h17mr10298105wml.49.1642065226510; Thu, 13 Jan 2022 01:13:46 -0800 (PST) Original-Received: from rltb ([2a01:e0a:3f3:fb50:da2c:6e12:f0db:3a30]) by smtp.gmail.com with ESMTPSA id r1sm2468438wrz.30.2022.01.13.01.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 01:13:46 -0800 (PST) In-Reply-To: (Alan Mackenzie's message of "Thu, 13 Jan 2022 07:39:05 +0000") 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:224085 Archived-At: >>>>> On Thu, 13 Jan 2022 07:39:05 +0000, Alan Mackenzie said: Alan> Hello, Emacs. Alan> In the master branch, with emacs -Q, do Alan> M-: (funcall) RET Alan> .. The error message one sees is Alan> (void-function nil) Alan> .. This is wrong. There is no function, nil or otherwise, suppl= ied to Alan> funcall. The error message ought to be "Too few arguments", or Alan> something like that. Alan> The cause of the bug lies in Ffuncall in .../src/eval.c. There, = the Alan> code uses args[0] without first checking that nargs > 0. It=CA=BCs not Ffuncall's responsibility to check that, it=CA=BCs 'eval' that should be doing it. Compare with eg M-: (format), which correctly signals 'wrong-number-of-arguments. Robert --=20