GNU bug report logs - #11811
23.2; Macro pushnew in cl.el captures variable x

Previous Next

Package: emacs;

Reported by: Janne Nykopp <janne.nykopp <at> iki.fi>

Date: Thu, 28 Jun 2012 21:24:01 UTC

Severity: normal

Found in version 23.2

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 11811-done <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Janne Nykopp <janne.nykopp <at> iki.fi>
Cc: 11811-done <at> debbugs.gnu.org
Subject: Re: bug#11811: 23.2; Macro pushnew in cl.el captures variable x
Date: Fri, 29 Jun 2012 01:06:08 +0200
On Thu, Jun 28, 2012 at 10:45 PM, Janne Nykopp <janne.nykopp <at> iki.fi> wrote:

> The macro `pushnew' seems to capture variable x when no keyword
> arguments are given:
> (macroexpand '(pushnew 'a x)) =>
> (let ((x (quote a))) (if (memql x x) x (setq x (cons x x))))

Yes.

> This bug still exists in emacs-24 developer branch cl.el revision
> 108062 (latest version at the time of writing).

Should be fixed in the trunk, in revno:108794.

    Juanma




This bug report was last modified 13 years and 43 days ago.

Previous Next


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