[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11038: 24.0.94; 24.0.94; cl loop macroexpand fails with (wrong-type-
From: |
Stefan Monnier |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) |
> 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