GNU bug report logs - #11719
24.1; CL argument list error

Previous Next

Package: emacs;

Reported by: Joe Wells <jbwells <at> blueyonder.co.uk>

Date: Fri, 15 Jun 2012 20:33:02 UTC

Severity: normal

Found in version 24.1

Fixed in version 24.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11719 in the body.
You can then email your comments to 11719 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11719; Package emacs. (Fri, 15 Jun 2012 20:33:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joe Wells <jbwells <at> blueyonder.co.uk>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 15 Jun 2012 20:33:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Joe Wells <jbwells <at> blueyonder.co.uk>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.1; CL argument list error
Date: Fri, 15 Jun 2012 14:44:06 +0100
Dear Emacs maintainers and bug fixers,

In Emacs 22.1, evaluating

  (funcall (function* (lambda ((x . y)) (cons y x))) '(1 . 2))

returns (2 . 1), as expected and documented.

In Emacs 24.1, evaluating the above sexp yields this error message:

  Wrong type argument: listp, y

This happens because

  (cl--make-usage-args '((x . y)))

recursively descends into it argument list and evaluates this:

  (memq '&cl-defs '(x . y))

In the older Emacs, cl--make-usage-args did not even exist and only a
simpler portion of its code is present instead of the call to
cl--make-usage-args.  In particular, the recursive descent is missing.

I hope this bug report is somehow helpful.

By the way, I have personally worked around the bug by disabling
cl--make-usage-args completely, which is okay because it is only used
to build a doc string for the anonymous function.  I disabled it like
this:

  (defadvice cl--make-usage-args (around jbw-fix-brokenness activate))

-- 
With my best wishes,

Joe Wells

----------------------------------------------------------------------
In GNU Emacs 24.1.1 (i686-redhat-linux-gnu, GTK+ Version 2.10.4)
 of 2012-06-12 on jove
Configured using:
 `configure '--build=i686-redhat-linux-gnu'
 '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu'
 '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
 '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
 '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
 '--libexecdir=/usr/libexec' '--localstatedir=/var'
 '--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
 '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg'
 '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm'
 '--with-x-toolkit=gtk' 'build_alias=i686-redhat-linux-gnu'
 'host_alias=i686-redhat-linux-gnu' 'target_alias=i386-redhat-linux-gnu'
 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32
 -march=i386 -mtune=generic -fasynchronous-unwind-tables''




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Sat, 23 Jun 2012 04:29:01 GMT) Full text and rfc822 format available.

Notification sent to Joe Wells <jbwells <at> blueyonder.co.uk>:
bug acknowledged by developer. (Sat, 23 Jun 2012 04:29:02 GMT) Full text and rfc822 format available.

Message #10 received at 11719-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Joe Wells <jbwells <at> blueyonder.co.uk>
Cc: 11719-done <at> debbugs.gnu.org
Subject: Re: bug#11719: 24.1; CL argument list error
Date: Sat, 23 Jun 2012 00:24:57 -0400
Version: 24.2

>   (funcall (function* (lambda ((x . y)) (cons y x))) '(1 . 2))
> returns (2 . 1), as expected and documented.
> In Emacs 24.1, evaluating the above sexp yields this error message:
>   Wrong type argument: listp, y

Should be fixed now, thank you,


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 21 Jul 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 335 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.