emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#11038: closed (24.0.94; 24.0.94; cl loop macroexpa


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#11038: closed (24.0.94; 24.0.94; cl loop macroexpand fails with (wrong-type-argument listp emacs))
Date: Sun, 06 May 2012 15:42:02 +0000

Your message dated Sun, 06 May 2012 11:39:11 -0400
with message-id <address@hidden>
and subject line Re: bug#11038: 24.0.94; 24.0.94; cl loop macroexpand fails 
with (wrong-type-argument listp emacs)
has caused the debbugs.gnu.org bug report #11038,
regarding 24.0.94; 24.0.94; cl loop macroexpand fails with (wrong-type-argument 
listp emacs)
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
11038: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11038
GNU Bug Tracking System
Contact address@hidden with problems
--- 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:

Attachment: 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]