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

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

bug#36566: 27.0.50; debug is sometimes horribly slow


From: Lars Ingebrigtsen
Subject: bug#36566: 27.0.50; debug is sometimes horribly slow
Date: Sun, 15 May 2022 18:25:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> But this reminds me -- why do we have `cl-print' anyway?
>
> Because we want to let packages use `cl-defmethod` to provide their own
> output syntax for their objects.
>
>> Shouldn't the C version handle printing things nicely?
>
> The C code doesn't really know about cl-defstructs (or advice objects).

Wouldn't it make sense to teach the C `prin1' about those (and also call
out to the Lisp level for the objects that have a specialised print
syntax)?  We've got something vaguely similar with
`print-unreadable-function', for instance.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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