From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Allow value of PRINT_CIRCLE to be modified from Elisp? Date: Thu, 19 Apr 2012 18:12:15 -0400 Message-ID: References: <20120419130912.GA12961@c3po.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334873557 26162 80.91.229.3 (19 Apr 2012 22:12:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 22:12:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Toby Cubitt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 20 00:12:37 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKzae-00063U-Is for ged-emacs-devel@m.gmane.org; Fri, 20 Apr 2012 00:12:36 +0200 Original-Received: from localhost ([::1]:37320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKzad-000704-LR for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2012 18:12:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKzaa-0006zi-S5 for emacs-devel@gnu.org; Thu, 19 Apr 2012 18:12:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKzaY-0002bY-Ff for emacs-devel@gnu.org; Thu, 19 Apr 2012 18:12:32 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKzaY-0002bL-BR for emacs-devel@gnu.org; Thu, 19 Apr 2012 18:12:30 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3JMCFIA012184; Thu, 19 Apr 2012 18:12:15 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 37DAEAE21B; Thu, 19 Apr 2012 18:12:15 -0400 (EDT) In-Reply-To: <20120419130912.GA12961@c3po.home> (Toby Cubitt's message of "Thu, 19 Apr 2012 15:09:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4197=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4197> : streams <748300> : uri <1101125> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149841 Archived-At: > print.c defines an arbitrary fixed limit > #define PRINT_CIRCLE 200 > on the depth to which a lisp object can be printed, before it bails out > with the "Apparently circular structure being printed" error. > Apparently, no one anticipated wanting to print highly nested Elisp > structures. But this arbitrary limit is breaking some of the > functionality in Elisp packages I maintain (see below for a detailed > explanation). > Could the #define PRINT_CIRCLE constant be turned into a DEFVAR_INT > `max-lisp-print-depth' variable, so that it could be adjusted from Elisp > when more print depth is needed? Maybe we should simply ignore PRINT_CIRCLE when `print-circle' is non-nil. Stefan