GNU bug report logs - #20241
25.0.50; `setq' with only one argument

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Wed, 1 Apr 2015 14:54:02 UTC

Severity: wishlist

Found in version 25.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #109 received at 20241 <at> debbugs.gnu.org (full text, mbox):

From: Johan Bockgård <bojohan <at> gnu.org>
To: John Wiegley <jwiegley <at> gmail.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 20241 <at> debbugs.gnu.org,
 Artur Malabarba <bruce.connor.am <at> gmail.com>,
 Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#20241: 25.0.50; `setq' with only one argument
Date: Thu, 26 Nov 2015 01:21:30 +0100
John Wiegley <jwiegley <at> gmail.com> writes:

>>>>>> Drew Adams <drew.adams <at> oracle.com> writes:
>
>> My preference for the compiler is to (a) let you know there are syntax
>> problems, and where they are, and (b) generate code that acts the same as
>> the interpreted code: in this case, raise a runtime error.
>
> Let's take a different case as a behavorial example:
>
>   The code: (funcall)
>
>   Interpreted: Raises an error: eval: Wrong number of arguments: funcall, 0
>
>   Byte-compilation: No warnings or errors printed.
>
>   Loading of .elc: Raises an error: load: Wrong number of arguments: funcall, 0

(funcall) (print t)

Compile. Load .elc =>

This consistently gives me one of two results:
A segfault, or "Invalid function: 183795961" where the actual
number depends on the timestamp of the .elc file.





This bug report was last modified 9 years and 239 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.