emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allow value of PRINT_CIRCLE to be modified from Elisp?


From: Toby Cubitt
Subject: Re: Allow value of PRINT_CIRCLE to be modified from Elisp?
Date: Fri, 20 Apr 2012 00:25:13 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Apr 19, 2012 at 06:12:15PM -0400, Stefan Monnier wrote:
> > 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.

That would definitely solve all my problems if it can be done.

Toby
-- 
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain

email: address@hidden
web:   www.dr-qubit.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]