From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: eieio, pretty printing, and edebug Date: Tue, 28 Oct 2014 12:44:20 -0400 Message-ID: References: <87d29dz81x.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414514716 12773 80.91.229.3 (28 Oct 2014 16:45:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2014 16:45:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eric Abrahamsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 17:45:09 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 1Xj9tN-0007AA-0y for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 17:45:09 +0100 Original-Received: from localhost ([::1]:40373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9tM-0001yD-Ki for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 12:45:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9tA-0001tz-9c for emacs-devel@gnu.org; Tue, 28 Oct 2014 12:45:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj9t2-0002Ir-1S for emacs-devel@gnu.org; Tue, 28 Oct 2014 12:44:56 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:52217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj9t1-0002Im-SS for emacs-devel@gnu.org; Tue, 28 Oct 2014 12:44:47 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 38EAA84F43; Tue, 28 Oct 2014 12:44:47 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 92E581E5B8D; Tue, 28 Oct 2014 12:44:20 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 7795EB4245; Tue, 28 Oct 2014 12:44:20 -0400 (EDT) In-Reply-To: <87d29dz81x.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 27 Oct 2014 11:22:50 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:175931 Archived-At: > 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. Stefan