[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25295: Represent eieio objects using object-print in backtraces and
From: |
Stefan Monnier |
Subject: |
bug#25295: Represent eieio objects using object-print in backtraces and edebug |
Date: |
Wed, 04 Jan 2017 20:51:14 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) |
> If an Elisp-level printer is available to users and developers, I think
> we'd have to assume they will throw any old thing in there, including
> `format' and `prin1'. Would making `prin1' reentrant solve all of the
> resulting problems?
Maybe the better solution would be to make `prin1` (and `format`, ..)
signal errors. Instead, we could provide the printer with a special
prin1-like function which basically "continues" the print job in the
C code.
>> One more thing: there have already been other desires/needs to tweak the
>> printing from Elisp. E.g. to special case printing of objects that
>> can't be printed readably (e.g. buffers, markers, overlays, ...).
> That's good! But the previous issue would still need to be resolved.
Yes, and they're largely independent: the printer you're talking about
would be used when we don't want to print readably, whereas this case
would apply to the situation where we want to print readably (in which
case we don't want to go through custom pretty printers like the one you
need).
Stefan
- bug#25295: Represent eieio objects using object-print in backtraces and edebug, Stefan Monnier, 2017/01/03
- bug#25295: Represent eieio objects using object-print in backtraces and edebug, Eric Abrahamsen, 2017/01/04
- bug#25295: Represent eieio objects using object-print in backtraces and edebug,
Stefan Monnier <=
- bug#25295: Represent eieio objects using object-print in backtraces and edebug, Stefan Monnier, 2017/01/04
- bug#25295: Represent eieio objects using object-print in backtraces and edebug, Stefan Monnier, 2017/01/04
- bug#25295: Represent eieio objects using object-print in backtraces and edebug, Eli Zaretskii, 2017/01/05
- bug#25295: Represent eieio objects using object-print in backtraces and edebug, Stefan Monnier, 2017/01/05
- bug#25295: Represent eieio objects using object-print in backtraces and edebug, Eli Zaretskii, 2017/01/06