--- Begin Message ---
Subject: |
24.0.94; 24.0.94; cl loop macroexpand fails with (wrong-type-argument listp emacs) |
Date: |
Sat, 17 Mar 2012 23:27:13 +0100 |
Hi,
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:
backtrace
Description: Text document
(loop for (gnu . emacs) in nil)
is parsed and executed correctly, so is
(loop for rms in nil
do (loop for (gnu . emacs) in nil))
Christopher
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#11038: 24.0.94; 24.0.94; cl loop macroexpand fails with (wrong-type-argument listp emacs) |
Date: |
Sun, 06 May 2012 11:39:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
>> 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).
> Here is an (admittedly very naive) patch.
Thanks, installed.
Stefan
--- End Message ---