From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Ludlam Newsgroups: gmane.emacs.devel Subject: Re: eieio, pretty printing, and edebug Date: Tue, 28 Oct 2014 22:38:23 -0400 Message-ID: <5450531F.1060601@siege-engine.com> References: <87d29dz81x.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1414550331 4895 80.91.229.3 (29 Oct 2014 02:38:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 02:38:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 29 03:38:44 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XjJ9n-0005d4-3z for ged-emacs-devel@m.gmane.org; Wed, 29 Oct 2014 03:38:43 +0100 Original-Received: from localhost ([::1]:42358 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjJ9m-0001qm-Nm for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 22:38:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjJ9d-0001q6-99 for emacs-devel@gnu.org; Tue, 28 Oct 2014 22:38:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjJ9V-0006HE-KJ for emacs-devel@gnu.org; Tue, 28 Oct 2014 22:38:33 -0400 Original-Received: from mail-qa0-f51.google.com ([209.85.216.51]:33722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjJ9V-0006Gy-G3 for emacs-devel@gnu.org; Tue, 28 Oct 2014 22:38:25 -0400 Original-Received: by mail-qa0-f51.google.com with SMTP id f12so1443455qad.24 for ; Tue, 28 Oct 2014 19:38:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XQmIAjhYE3yI5HzvJzMteP1DaRnGik6u5N4ZeEoslE8=; b=a28lw8Ux+j5Gz9xR5gqqVtFSfLDnwI3FK3Kj7vKhu4S3A42kblXdtBqD9s/5RSVsoI ljoM0nuEABYMeqvngcCFGcVgfaE7BhbgP2QEmk/PatmzywP4+SHS837ju14y1/U6goBB UmUyz48D6dr8BsI1WM+jaUIu+Yo4Kh/X2FxTWYZXQ9snXqSpnCyXwdelK0iQgdJOHfos 6lP0W74FmyIdaKjfKWjf8TCI47YIB7eTM3h4N1omQiA7Plq7mqbgv9gUoNXajb8IUlLu 3WZaS3duHUX34u0oyjIwE850X6GT/tcF/RXihqrwvE6b2FWGSWoPtxRYyLK0JPZK4YbL Kj8g== X-Received: by 10.224.40.70 with SMTP id j6mr6676386qae.21.1414550304459; Tue, 28 Oct 2014 19:38:24 -0700 (PDT) Original-Received: from [192.168.1.202] (pool-108-20-224-24.bstnma.fios.verizon.net. [108.20.224.24]) by mx.google.com with ESMTPSA id j34sm2955604qge.41.2014.10.28.19.38.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Oct 2014 19:38:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:175959 Archived-At: 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