From: Robert Pluim <rpluim@gmail.com>
To: Alan Mackenzie <acm@muc.de>
Cc: 53227@debbugs.gnu.org
Subject: bug#53227: master: Wrong error message with M-: (funcall).
Date: Thu, 13 Jan 2022 10:13:45 +0100 [thread overview]
Message-ID: <874k683smu.fsf@gmail.com> (raw)
In-Reply-To: <Yd/XGQVT7hC4ux4c@ACM> (Alan Mackenzie's message of "Thu, 13 Jan 2022 07:39:05 +0000")
>>>>> On Thu, 13 Jan 2022 07:39:05 +0000, Alan Mackenzie <acm@muc.de> 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, supplied 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ʼs not Ffuncall's responsibility to check that, itʼs 'eval' that
should be doing it. Compare with eg M-: (format), which correctly
signals 'wrong-number-of-arguments.
Robert
--
next prev parent reply other threads:[~2022-01-13 9:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 7:39 bug#53227: master: Wrong error message with M-: (funcall) Alan Mackenzie
2022-01-13 9:13 ` Robert Pluim [this message]
2022-01-13 9:32 ` Lars Ingebrigtsen
2022-01-13 10:55 ` Andreas Schwab
2022-01-13 14:36 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-13 15:37 ` Andreas Schwab
2022-01-13 20:37 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-13 21:27 ` Andreas Schwab
2022-01-13 23:52 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-14 0:04 ` Andreas Schwab
2022-01-14 0:09 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-14 0:17 ` Andreas Schwab
2022-01-14 0:19 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-14 9:55 ` Andreas Schwab
2022-01-14 17:22 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-14 7:36 ` Lars Ingebrigtsen
2022-01-14 17:26 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-13 18:24 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874k683smu.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=53227@debbugs.gnu.org \
--cc=acm@muc.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.