From unknown Fri Jun 20 20:12:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11719: 24.1; CL argument list error Resent-From: Joe Wells Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jun 2012 20:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11719@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133979238021351 (code B ref -1); Fri, 15 Jun 2012 20:33:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jun 2012 20:33:00 +0000 Received: from localhost ([127.0.0.1]:44356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfdCV-0005YI-3F for submit@debbugs.gnu.org; Fri, 15 Jun 2012 16:33:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55605) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfWsq-0004zV-9p for submit@debbugs.gnu.org; Fri, 15 Jun 2012 09:48:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfWpr-0007wd-7k for submit@debbugs.gnu.org; Fri, 15 Jun 2012 09:45:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWpr-0007wX-4A for submit@debbugs.gnu.org; Fri, 15 Jun 2012 09:45:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWpk-0005Re-Se for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 09:45:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfWpd-0007im-2O for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 09:45:04 -0400 Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:38360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWpc-0007i4-Nv for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 09:44:56 -0400 Received: from know-smtpout-3.server.virginmedia.net ([62.254.123.3]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20120615134451.NZPD14795.mtaout02-winn.ispmail.ntl.com@know-smtpout-3.server.virginmedia.net> for ; Fri, 15 Jun 2012 14:44:51 +0100 Received: from [82.41.76.202] (helo=127.0.0.1) by know-smtpout-3.server.virginmedia.net with smtp (Exim 4.63) (envelope-from ) id 1SfWop-0001nh-2u for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 14:44:07 +0100 Received: (nullmailer pid 31112 invoked by uid 1000); Fri, 15 Jun 2012 13:44:06 -0000 X-Mail-Via: blue From: Joe Wells Date: Fri, 15 Jun 2012 14:44:06 +0100 Message-ID: <8762as666x.fsf@blueyonder.co.uk> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii SMTP-Host: smtp.blueyonder.co.uk SMTP-Port: 25 X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=9XsgTmalabQA:10 a=3NElcqgl2aoA:10 a=kj9zAlcOel0A:10 a=46akP8vE0t1anHXdEmcA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Mailman-Approved-At: Fri, 15 Jun 2012 16:32:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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'' From unknown Fri Jun 20 20:12:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Joe Wells Subject: bug#11719: closed (Re: bug#11719: 24.1; CL argument list error) Message-ID: References: <8762as666x.fsf@blueyonder.co.uk> X-Gnu-PR-Message: they-closed 11719 X-Gnu-PR-Package: emacs Reply-To: 11719@debbugs.gnu.org Date: Sat, 23 Jun 2012 04:29:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1340425742-20623-1" This is a multi-part message in MIME format... ------------=_1340425742-20623-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11719: 24.1; CL argument list error which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11719@debbugs.gnu.org. --=20 11719: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11719 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1340425742-20623-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11719-done) by debbugs.gnu.org; 23 Jun 2012 04:28:43 +0000 Received: from localhost ([127.0.0.1]:53417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiHxj-0005MA-DW for submit@debbugs.gnu.org; Sat, 23 Jun 2012 00:28:43 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:21308) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SiHxi-0005M4-05 for 11719-done@debbugs.gnu.org; Sat, 23 Jun 2012 00:28:42 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCrYj/2dsb2JhbABEtBGBCIIWAQVWIxALDiYSFBgNJIghugmQRAOjM4FYgwU X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191968277" Received: from 76-10-182-35.dsl.teksavvy.com (HELO ceviche.home) ([76.10.182.35]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Jun 2012 00:24:59 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 2C85966C6C; Sat, 23 Jun 2012 00:24:57 -0400 (EDT) From: Stefan Monnier To: Joe Wells Subject: Re: bug#11719: 24.1; CL argument list error Message-ID: References: <8762as666x.fsf@blueyonder.co.uk> Date: Sat, 23 Jun 2012 00:24:57 -0400 In-Reply-To: <8762as666x.fsf@blueyonder.co.uk> (Joe Wells's message of "Fri, 15 Jun 2012 14:44:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11719-done Cc: 11719-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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 ------------=_1340425742-20623-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Jun 2012 20:33:00 +0000 Received: from localhost ([127.0.0.1]:44356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfdCV-0005YI-3F for submit@debbugs.gnu.org; Fri, 15 Jun 2012 16:33:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55605) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SfWsq-0004zV-9p for submit@debbugs.gnu.org; Fri, 15 Jun 2012 09:48:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfWpr-0007wd-7k for submit@debbugs.gnu.org; Fri, 15 Jun 2012 09:45:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWpr-0007wX-4A for submit@debbugs.gnu.org; Fri, 15 Jun 2012 09:45:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWpk-0005Re-Se for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 09:45:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfWpd-0007im-2O for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 09:45:04 -0400 Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:38360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWpc-0007i4-Nv for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 09:44:56 -0400 Received: from know-smtpout-3.server.virginmedia.net ([62.254.123.3]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20120615134451.NZPD14795.mtaout02-winn.ispmail.ntl.com@know-smtpout-3.server.virginmedia.net> for ; Fri, 15 Jun 2012 14:44:51 +0100 Received: from [82.41.76.202] (helo=127.0.0.1) by know-smtpout-3.server.virginmedia.net with smtp (Exim 4.63) (envelope-from ) id 1SfWop-0001nh-2u for bug-gnu-emacs@gnu.org; Fri, 15 Jun 2012 14:44:07 +0100 Received: (nullmailer pid 31112 invoked by uid 1000); Fri, 15 Jun 2012 13:44:06 -0000 X-Mail-Via: blue To: bug-gnu-emacs@gnu.org Subject: 24.1; CL argument list error From: Joe Wells Date: Fri, 15 Jun 2012 14:44:06 +0100 Message-ID: <8762as666x.fsf@blueyonder.co.uk> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii SMTP-Host: smtp.blueyonder.co.uk SMTP-Port: 25 X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=9XsgTmalabQA:10 a=3NElcqgl2aoA:10 a=kj9zAlcOel0A:10 a=46akP8vE0t1anHXdEmcA:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 15 Jun 2012 16:32:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) 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'' ------------=_1340425742-20623-1--