From unknown Fri Aug 15 03:56:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16671 <16671@debbugs.gnu.org> To: bug#16671 <16671@debbugs.gnu.org> Subject: Status: 24.3; cl-lib from ELPA defadvices cl-position into infinite loop Reply-To: bug#16671 <16671@debbugs.gnu.org> Date: Fri, 15 Aug 2025 10:56:49 +0000 retitle 16671 24.3; cl-lib from ELPA defadvices cl-position into infinite l= oop reassign 16671 emacs submitter 16671 Noam Postavsky severity 16671 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 06 12:45:20 2014 Received: (at submit) by debbugs.gnu.org; 6 Feb 2014 17:45:20 +0000 Received: from localhost ([127.0.0.1]:53640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBT0o-0003dD-OW for submit@debbugs.gnu.org; Thu, 06 Feb 2014 12:45:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50831) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBT0n-0003d6-3B for submit@debbugs.gnu.org; Thu, 06 Feb 2014 12:45:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBT0j-000628-55 for submit@debbugs.gnu.org; Thu, 06 Feb 2014 12:45:16 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:58277) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBT0j-000624-1y for submit@debbugs.gnu.org; Thu, 06 Feb 2014 12:45:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBT0i-0008RV-4m for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 12:45:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBT0g-000619-1u for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 12:45:12 -0500 Received: from mail-qc0-x22f.google.com ([2607:f8b0:400d:c01::22f]:58847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBT0f-00060x-UG for bug-gnu-emacs@gnu.org; Thu, 06 Feb 2014 12:45:09 -0500 Received: by mail-qc0-f175.google.com with SMTP id x13so3768153qcv.34 for ; Thu, 06 Feb 2014 09:45:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=7XKzG1e8jBcyw2WvDiY6pEig6Vyy1j3+IvoO0XW2Ipw=; b=BWcVnC6Ghl/cqI6RH4vXERKxx2VnB7dzFOw7woylG27Kw9uUUm17toDCki8z4fD1Tz IQhjwF6r2wZDsPEG4/mZy+U02cho5K0v+7p2IMIONRZTt39iuNn6DyFnJrUaYFdNr/Aq VvIOyWpiMTF2Ck3IShz8aVgIwVOUl1mdeO1WtRE40I+lltDa1hjT1anaxYHx5FEviG+J M11iCMTNW4WC09tZVgH/rp550pgYbPpw5yvrPOA6zr20nLxiJMmgRxB2ZvIxSRqFltS+ t3oetYXB8PbTx1pjkHO56/BZobvorrwNy5HOD6Mhejp2jRWcm3llRgcUyoWrtJbElV1U 99DQ== MIME-Version: 1.0 X-Received: by 10.224.169.11 with SMTP id w11mr14365885qay.71.1391708658870; Thu, 06 Feb 2014 09:44:18 -0800 (PST) Received: by 10.224.151.201 with HTTP; Thu, 6 Feb 2014 09:44:18 -0800 (PST) Date: Thu, 6 Feb 2014 12:44:18 -0500 X-Google-Sender-Auth: ICRfouWKfo3vNjLBwbMXegFkuNk Message-ID: Subject: 24.3; cl-lib from ELPA defadvices cl-position into infinite loop From: Noam Postavsky To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) emacs -Q --eval "(progn (package-initialize t) (package-install 'cl-lib) (require 'cl) (position 1 '(1)))" *Messages* buffer contains apply: Variable binding depth exceeds max-specpdl-size In GNU Emacs 24.3.1 (i386-mingw-nt6.0.6002) of 2013-03-17 on MARVIN See also: https://github.com/capitaomorte/yasnippet/issues/457 (user upgrades to 24.3 and doesn't think to uninstall cl-lib, so they hit this bug). From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 19 14:38:05 2014 Received: (at 16671) by debbugs.gnu.org; 19 Feb 2014 19:38:05 +0000 Received: from localhost ([127.0.0.1]:60632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGCy4-0006Vf-EL for submit@debbugs.gnu.org; Wed, 19 Feb 2014 14:38:04 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63581) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGCxz-0006V6-TC for 16671@debbugs.gnu.org; Wed, 19 Feb 2014 14:38:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFLd/8D/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFLd/8D/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="48164181" Received: from 75-119-255-3.dsl.teksavvy.com (HELO pastel.home) ([75.119.255.3]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Feb 2014 14:37:53 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9F9D0615DA; Wed, 19 Feb 2014 14:37:53 -0500 (EST) From: Stefan Monnier To: Noam Postavsky Subject: Re: bug#16671: 24.3; cl-lib from ELPA defadvices cl-position into infinite loop Message-ID: References: Date: Wed, 19 Feb 2014 14:37:53 -0500 In-Reply-To: (Noam Postavsky's message of "Thu, 6 Feb 2014 12:44:18 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 16671 Cc: 16671@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > emacs -Q --eval "(progn (package-initialize t) (package-install > 'cl-lib) (require 'cl) (position 1 '(1)))" > *Messages* buffer contains > apply: Variable binding depth exceeds max-specpdl-size Indeed. Could you try the patch below and confirm if it fixes the problem for you? Stefan diff --git a/packages/cl-lib/cl-lib.el b/packages/cl-lib/cl-lib.el index 1ea22e0..cf13c56 100644 --- a/packages/cl-lib/cl-lib.el +++ b/packages/cl-lib/cl-lib.el @@ -318,25 +327,27 @@ (message "%S already defined, not rebinding" new)) (defalias new fun)))) -(autoload 'cl-position "cl-seq") -(defadvice cl-position (around cl-lib (cl-item cl-seq &rest cl-keys) activate) +(unless (symbolp (symbol-function 'position)) + (autoload 'cl-position "cl-seq") + (defadvice cl-position (around cl-lib (cl-item cl-seq &rest cl-keys) activate) (let ((argk (ad-get-args 2))) (if (or (null argk) (keywordp (car argk))) ;; This is a call to cl-lib's `cl-position'. (setq ad-return-value (apply #'position (ad-get-arg 0) (ad-get-arg 1) argk)) ;; Must be a call to cl's old `cl-position'. - ad-do-it))) + ad-do-it)))) -(autoload 'cl-delete-duplicates "cl-seq") -(defadvice cl-delete-duplicates (around cl-lib (cl-seq &rest cl-keys) activate) +(unless (symbolp (symbol-function 'delete-duplicates)) + (autoload 'cl-delete-duplicates "cl-seq") + (defadvice cl-delete-duplicates (around cl-lib (cl-seq &rest cl-keys) activate) (let ((argk (ad-get-args 1))) (if (or (null argk) (keywordp (car argk))) ;; This is a call to cl-lib's `cl-delete-duplicates'. (setq ad-return-value (apply #'delete-duplicates (ad-get-arg 0) argk)) ;; Must be a call to cl's old `cl-delete-duplicates'. - ad-do-it))) + ad-do-it)))) (when (or (not (fboundp 'cl-member)) (eq (symbol-function 'cl-member) #'memq)) From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 22 14:52:09 2014 Received: (at 16671) by debbugs.gnu.org; 22 Feb 2014 19:52:09 +0000 Received: from localhost ([127.0.0.1]:35925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHIcL-0007NU-1m for submit@debbugs.gnu.org; Sat, 22 Feb 2014 14:52:09 -0500 Received: from mail-qc0-f172.google.com ([209.85.216.172]:53389) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHIcI-0007Ml-FS for 16671@debbugs.gnu.org; Sat, 22 Feb 2014 14:52:07 -0500 Received: by mail-qc0-f172.google.com with SMTP id w7so5398809qcr.3 for <16671@debbugs.gnu.org>; Sat, 22 Feb 2014 11:52:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=uMX+dOmoNSPCvJljQwImJvMf9ivnv9JGrmDaeLR8lT4=; b=cLZtO4vqcQ4Jvpzohhc6na/38AmvWMq4XGgDoT1FTO40lOJZ2lKmEAAusH7AXTJvwO wUbHIpVKPsv2jHd+GyZVHQ91t17WEar/MuYFfBeuX+RPz0YQ9wQFjJn+nxbIKJJMY1Iv A+1ehIah3Ik7okSj2sAwri1PwrRu9NUHRvuxyk5rh6jl9aBHT1gRNGkC/36bw/KMUE4R DRpo+9Ehy05rv6XIER75LzBb80UNQhwl8B8TPCj9IrZWFY8THSDQSDY8kAcTmhU40BKD Xh0rkWekXWLNxI3u22dxTRGZYja4CfEruBkcCsaS3YF32si/2OM0mJxS+gfhnGfd/HCZ GwwA== MIME-Version: 1.0 X-Received: by 10.140.29.38 with SMTP id a35mr18596856qga.55.1393098720706; Sat, 22 Feb 2014 11:52:00 -0800 (PST) Received: by 10.224.151.201 with HTTP; Sat, 22 Feb 2014 11:52:00 -0800 (PST) In-Reply-To: References: Date: Sat, 22 Feb 2014 14:52:00 -0500 X-Google-Sender-Auth: QV09mQ6_m0NGawwRG8sov7J3nvs Message-ID: Subject: Re: bug#16671: 24.3; cl-lib from ELPA defadvices cl-position into infinite loop From: Noam Postavsky To: Stefan Monnier Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 16671 Cc: 16671@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Wed, Feb 19, 2014 at 2:37 PM, Stefan Monnier wrote: > Indeed. Could you try the patch below and confirm if it fixes the > problem for you? Yes, looks good. All of position, cl-position, delete-duplicates, and cl-delete-duplicates succeed with the patch. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 24 18:35:14 2014 Received: (at control) by debbugs.gnu.org; 24 Feb 2014 23:35:14 +0000 Received: from localhost ([127.0.0.1]:38307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI53K-0003VV-9L for submit@debbugs.gnu.org; Mon, 24 Feb 2014 18:35:14 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:60910 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WI53I-0003VO-GV for control@debbugs.gnu.org; Mon, 24 Feb 2014 18:35:12 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WI53I-0002bh-7e for control@debbugs.gnu.org; Mon, 24 Feb 2014 18:35:12 -0500 Date: Mon, 24 Feb 2014 18:35:12 -0500 Message-Id: Subject: control message for bug 16857 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 16671 16857 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 25 16:44:27 2014 Received: (at 16671) by debbugs.gnu.org; 25 Feb 2014 21:44:27 +0000 Received: from localhost ([127.0.0.1]:39986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIPne-0001Yl-MK for submit@debbugs.gnu.org; Tue, 25 Feb 2014 16:44:26 -0500 Received: from mercure.iro.umontreal.ca ([132.204.24.67]:56694) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIPnc-0001Yd-W2 for 16671@debbugs.gnu.org; Tue, 25 Feb 2014 16:44:25 -0500 Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 96CCB84E46; Tue, 25 Feb 2014 16:44:24 -0500 (EST) Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 325DD1E5B8C; Tue, 25 Feb 2014 16:43:58 -0500 (EST) Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 2322EB4128; Tue, 25 Feb 2014 16:43:58 -0500 (EST) From: Stefan Monnier To: Noam Postavsky Subject: Re: bug#16671: 24.3; cl-lib from ELPA defadvices cl-position into infinite loop Message-ID: References: Date: Tue, 25 Feb 2014 16:43:58 -0500 In-Reply-To: (Noam Postavsky's message of "Sat, 22 Feb 2014 14:52:00 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-Spam-Status: No X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 16671 Cc: 16671@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > Yes, looks good. All of position, cl-position, delete-duplicates, and > cl-delete-duplicates succeed with the patch. Thanks. Should appear tomorrow as cl-lib-0.5. Stefan From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 11:53:01 2014 Received: (at control) by debbugs.gnu.org; 26 Feb 2014 16:53:01 +0000 Received: from localhost ([127.0.0.1]:41522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIhjA-0002fA-WA for submit@debbugs.gnu.org; Wed, 26 Feb 2014 11:53:01 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:46029) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIhj9-0002f3-OT for control@debbugs.gnu.org; Wed, 26 Feb 2014 11:53:00 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WIhj9-0005Xk-IG for control@debbugs.gnu.org; Wed, 26 Feb 2014 11:52:59 -0500 Date: Wed, 26 Feb 2014 11:52:59 -0500 Message-Id: Subject: control message for bug 16671 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 16671 From unknown Fri Aug 15 03:56:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 27 Mar 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator