unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Janne Nykopp <janne.nykopp@iki.fi>
Cc: 11811-done@debbugs.gnu.org
Subject: bug#11811: 23.2; Macro pushnew in cl.el captures variable x
Date: Fri, 29 Jun 2012 01:06:08 +0200	[thread overview]
Message-ID: <CAAeL0SQO7qLadNDfa_kR1pPN+Ffc=Pg73WAhrz9eyiYvxjkT_A@mail.gmail.com> (raw)
In-Reply-To: <20120628204524.GC925@kekkonen.niksula.hut.fi>

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





      parent reply	other threads:[~2012-06-28 23:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 20:45 bug#11811: 23.2; Macro pushnew in cl.el captures variable x Janne Nykopp
2012-06-28 21:39 ` Drew Adams
2012-06-28 23:06 ` Juanma Barranquero [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAeL0SQO7qLadNDfa_kR1pPN+Ffc=Pg73WAhrz9eyiYvxjkT_A@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=11811-done@debbugs.gnu.org \
    --cc=janne.nykopp@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).