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: John Wiegley <jwiegley <at> gmail.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 20241 <at> debbugs.gnu.org, Artur Malabarba <bruce.connor.am <at> gmail.com>
Subject: bug#20241: 25.0.50; `setq' with only one argument
Date: Wed, 25 Nov 2015 13:52:07 -0800
>>>>> Alan Mackenzie <acm <at> muc.de> writes:

> How about enhancing the definition of setq to say that with 17
> arguments, NONE of the assignments are done?  This should be relatively
> straight forward to code up in the byte compiler, even in the lexical
> binding case.

I prefer atomic operations whenever possible, so I'd rather than the whole
setq would fail. This catches the error earlier, and leaves the environment in
a condition that makes it easier to reproduce that error (it's possible that
some of the variable settings might change the code path such that the setq is
no longer performed).

John




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.