emacs-devel
[Top][All Lists]
Advanced

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

Re: eieio, pretty printing, and edebug


From: Eric Ludlam
Subject: Re: eieio, pretty printing, and edebug
Date: Tue, 28 Oct 2014 22:38:23 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 10/28/2014 12:44 PM, Stefan Monnier wrote:
Line 895 in eieio.el, were it not commented out, would fix this by
having edebug print using the object-print generic, not prin1. I eval'ed
the line and tried it, and it seemed to work fine.

How come it's currently commented out? Can I open a bug for this?

`defalias' is clearly not right, since it hijacks the function.  But if
we change it to advice-add, I think it'd be OK to enable this
edebug help.

I think it would also be good to add hooks to the native printing system
so that such tweaks can be done more reliably.  Ideally, these same
hooks could be used for things like desktop and savehist to replace
markers or other "non-printable" objects with alternative output.

Hi,

Related to debugging EIEIO classes, the `data-debug.el' extension which is a part of Emacs includes a nice way to browse large data structures. In it, data-debug-eval-expression is something I've bound to M-: for myself. It shows the short version of the eval'd expression when it is short, and goes into a browser type buffer when it is particularly large.

Eric



reply via email to

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