Subject: Re: bug#11811: 23.2; Macro pushnew in cl.el captures variable x

From: Juanma Barranquero <[email-masked]>
Date: Fri, 29 Jun 2012 01:06:08 +0200

On Thu, Jun 28, 2012 at 10:45 PM, Janne Nykopp <[email-masked]> 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