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: Stefan Monnier
Subject: Re: Allow value of PRINT_CIRCLE to be modified from Elisp?
Date: Thu, 19 Apr 2012 18:12:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

> 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



reply via email to

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