From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#748: Elisp: lexical-let and cyclic structures Date: Wed, 20 Aug 2008 15:57:16 +0200 Message-ID: <1219240636.0@debian> Reply-To: michael_heerdegen@web.de, 748@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1219241272 13474 80.91.229.12 (20 Aug 2008 14:07:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2008 14:07:52 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 20 16:08:44 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KVoMT-0006nV-VY for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Aug 2008 16:08:34 +0200 Original-Received: from localhost ([127.0.0.1]:40680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVoLW-0003A4-GM for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Aug 2008 10:07:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVoLT-00039v-DO for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 10:07:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVoLR-00039a-9c for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 10:07:31 -0400 Original-Received: from [199.232.76.173] (port=54468 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVoLR-00039T-5W for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 10:07:29 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44273) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KVoLQ-0002bE-Ub for bug-gnu-emacs@gnu.org; Wed, 20 Aug 2008 10:07:29 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7KE7QEl009066; Wed, 20 Aug 2008 07:07:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7KE55GW007823; Wed, 20 Aug 2008 07:05:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Michael Heerdegen Original-Sender: Michael_Heerdegen@web.de Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 20 Aug 2008 14:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 748 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12192405795013 (code B ref -1); Wed, 20 Aug 2008 14:05:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 20 Aug 2008 13:56:19 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7KDuFYQ005006 for ; Wed, 20 Aug 2008 06:56:17 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:49866 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KVo9H-0001Ft-DD for emacs-pretest-bug@gnu.org; Wed, 20 Aug 2008 09:54:55 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KVoAT-0000Tx-US for emacs-pretest-bug@gnu.org; Wed, 20 Aug 2008 09:56:14 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:45710) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KVoAT-0000TW-HX for emacs-pretest-bug@gnu.org; Wed, 20 Aug 2008 09:56:09 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 8157EEB8BFE1 for ; Wed, 20 Aug 2008 15:56:05 +0200 (CEST) Original-Received: from [217.185.137.22] (helo=debian) by smtp05.web.de with asmtp (WEB.DE 4.109 #226) id 1KVoAO-00037w-00 for emacs-pretest-bug@gnu.org; Wed, 20 Aug 2008 15:56:04 +0200 X-Sender: michael_heerdegen@web.de X-Provags-ID: V01U2FsdGVkX18g64pMWVCWpWPcfiYzXqe+V4YfbnpJ//DeWIAe /e+Nqnx7i/AtPVV3/EnlKYTDXPkVw0RzjNCDYrUGJzWAJpV9ql i/BOocuL7wVCdrUjEEvg== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 20 Aug 2008 10:07:30 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19558 gmane.emacs.pretest.bugs:22847 Archived-At: When using the reader constructs `#N=' and `#N#' for cyclic structures, lexical-let sometimes produces errors which don't occur with let. Example: Eval the following: (defun f (start) (lexical-let (start start) ;; return a closure #1=(lambda (x) (if (= x start) x (+ x (#1# (1- x))))))) Then evaluating f ends with an error: (f 3) "Variable binding depth exceeds max-specpdl-size" The problem also occurs without lambdas. Examples: (let () '#1=(#1#)) ;; ==> (#0) (lexical-let () '#1=(#1#)) ;; Error (let ((x '#1=(#1#))) (lexical-let () x)) ;; ==> (#0) `#1=(#1#) ;; Error