unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: 11038@debbugs.gnu.org
Subject: bug#11038: 24.0.94; 24.0.94; cl loop macroexpand fails with (wrong-type-argument listp emacs)
Date: Sat, 17 Mar 2012 21:37:42 -0400	[thread overview]
Message-ID: <jwvsjh6u1xo.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20120317222717.4B9EF1FE38@saturn.ch.ristopher.com> (Christopher Schmidt's message of "Sat, 17 Mar 2012 23:27:13 +0100")

> I think I hit on a bug in GNU Emacs 24.0.94.1 (x86_64-unknown-linux-gnu,
> GTK+ Version 2.24.10) of 2012-03-11.  This cl loop is not parsed
> correctly.
> (loop for rms in nil
>       when t
>       do (loop for (gnu . emacs) in nil)
>       end)
> Backtrace when evaling this form:
> Debugger entered--Lisp error: (wrong-type-argument listp emacs)

Indeed, there's a bug in cl-expr-contains because it does not correctly
handle all forms of Elisp.  This is a very long standing bug.  It might
be possible to fix it by macro-expanding the code before calling
cl-expr-contains, but since I'm not familiar with `loop' nor with its
implementation, I'd rather let someone else write the corresponding
patch (which may have to wait for 24.2).


        Stefan





  reply	other threads:[~2012-03-18  1:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-17 22:27 bug#11038: 24.0.94; 24.0.94; cl loop macroexpand fails with (wrong-type-argument listp emacs) Christopher Schmidt
2012-03-18  1:37 ` Stefan Monnier [this message]
2012-05-06 14:53   ` Christopher Schmidt
2012-05-06 15:39     ` Stefan Monnier

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=jwvsjh6u1xo.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11038@debbugs.gnu.org \
    /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).