unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53227: master: Wrong error message with M-: (funcall).
@ 2022-01-13  7:39 Alan Mackenzie
  2022-01-13  9:13 ` Robert Pluim
  0 siblings, 1 reply; 18+ messages in thread
From: Alan Mackenzie @ 2022-01-13  7:39 UTC (permalink / raw)
  To: 53227

Hello, Emacs.

In the master branch, with emacs -Q, do

    M-: (funcall) RET

..  The error message one sees is

    (void-function nil)

..  This is wrong.  There is no function, nil or otherwise, supplied to
funcall.  The error message ought to be "Too few arguments", or
something like that.

The cause of the bug lies in Ffuncall in .../src/eval.c.  There, the
code uses args[0] without first checking that nargs > 0.

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-01-14 17:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13  7:39 bug#53227: master: Wrong error message with M-: (funcall) Alan Mackenzie
2022-01-13  9:13 ` Robert Pluim
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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).