mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-25 06:50:46 -08:00
(print_object): Check print_depth before searching for circularities.
This commit is contained in:
parent
b42f411561
commit
76afdf7e92
1 changed files with 4 additions and 3 deletions
|
|
@ -1560,6 +1560,10 @@ print_object (obj, printcharfun, escapeflag)
|
|||
|
||||
QUIT;
|
||||
|
||||
/* See similar code in print_preprocess. */
|
||||
if (print_depth > PRINT_CIRCLE)
|
||||
error ("Apparently circular structure being printed");
|
||||
|
||||
/* Detect circularities and truncate them. */
|
||||
if (STRINGP (obj) || CONSP (obj) || VECTORP (obj)
|
||||
|| COMPILEDP (obj) || CHAR_TABLE_P (obj) || SUB_CHAR_TABLE_P (obj)
|
||||
|
|
@ -1610,9 +1614,6 @@ print_object (obj, printcharfun, escapeflag)
|
|||
|
||||
print_depth++;
|
||||
|
||||
/* See similar code in print_preprocess. */
|
||||
if (print_depth > PRINT_CIRCLE)
|
||||
error ("Apparently circular structure being printed");
|
||||
#ifdef MAX_PRINT_CHARS
|
||||
if (max_print && print_chars > max_print)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue