bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#27117: 26.0.50; Setting cl-print-compiled to `static' has problems i


From: Stefan Monnier
Subject: bug#27117: 26.0.50; Setting cl-print-compiled to `static' has problems if print-circle isn't set
Date: Sun, 28 May 2017 14:33:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

> Replacing 'cl-prin1' with 'prin1' gives:

>     #[0 "\302\303\301\242\"\210\300 \207" [tmm-add-prompt (#0) remove-hook 
> minibuffer-setup-hook] 3]

Indeed, prin1 has a two ways to prevent infinite recursion:
- limit the print to a certain depth
- detect when we start printing that we're already in the process of
  printing, and then replace it with #N where N is some kind of depth of
  the reference (so #0 refers to the whole object that we're in the
  process of printing).

cl-prin1 doesn't offer these safety belts, currently (I always set
print-circle).


        Stefan





reply via email to

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