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


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: 20241 <at> debbugs.gnu.org
Cc: acm <at> muc.de
Subject: bug#20241: 25.0.50; `setq' with only one argument
Date: Mon, 23 Nov 2015 13:44:51 -0500
Alan Mackenzie wrote:

>> setq' should not be called with only one argument.  It "works", with the
>> effect of assigning a value of nil, but it is poor form.  Typically this
>> is a sign of a typo.
>
> Fixed in emacs-25.  The interpreter now signals a wrong-number-of-args
> error, and the byte compiler issues a warning.

What on earth is this incompatible change doing in a feature-frozen
release branch?

Also, the combination of a compiler _warning_ and a run-time _error_
makes no sense.




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.