GNU bug report logs -
#58739
Lack of error message about number of args (?native compilation?)
Previous Next
Reported by: Alan Mackenzie <acm <at> muc.de>
Date: Sun, 23 Oct 2022 12:14:02 UTC
Severity: normal
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sat, 29 Oct 2022 13:32:13 +0000
with message-id <Y10rXRPHALe7Uv/Q <at> ACM>
and subject line Re: bug#58739: Fixed
has caused the debbugs.gnu.org bug report #58739,
regarding Lack of error message about number of args (?native compilation?)
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
58739: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58739
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hello, Emacs.
Firstly, note that the function desktop-buffer has exactly 12
parameters.
With an up to date Emacs 29:
(i) emacs -Q
(ii) M-x load-library RET desktop RET.
(iii) M-x disassemble RET desktop-buffer.
Note that this is native code.
(iv) M-: (desktop-buffer 1 2 3 4 5 6 7 8 9 10 11 12 13) RET
This gives an error message about 4 not being a list. What it ought to
do is instead throw an error about the number of arguments. This is a
bug.
(v) M-x load-file RET /path/to/emacs/lisp/desktop.elc.
(vi) M-x disassemble RET desktop-buffer.
Note that we now have byte compiled code.
(vii) M-: (desktop-buffer 1 2 3 4 5 6 7 8 9 10 11 12 13) RET
We now get a correct error message about the numbere of arguments.
As a matter of interest, I noticed this bug while byte-compiling
desktop.el inside Emacs. It gave a warning message about the number of
parameters to desktop-buffer having changed from 12+ to 12.
Here, I suspect there's a bug in the native compilation of
desktop-buffer.
--
Alan Mackenzie (Nuremberg, Germany).
[Message part 3 (message/rfc822, inline)]
Bug fixed.
--
Alan Mackenzie (Nuremberg, Germany).
This bug report was last modified 2 years and 207 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.