[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11811: 23.2; Macro pushnew in cl.el captures variable x
From: |
Juanma Barranquero |
Subject: |
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@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