From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: eieio, pretty printing, and edebug Date: Mon, 27 Oct 2014 11:22:50 -0700 Message-ID: <87d29dz81x.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414433923 16460 80.91.229.3 (27 Oct 2014 18:18:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2014 18:18:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 27 19:18:36 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 1XiosD-0004Sw-54 for ged-emacs-devel@m.gmane.org; Mon, 27 Oct 2014 19:18:33 +0100 Original-Received: from localhost ([::1]:35423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiosA-0008PE-KD for ged-emacs-devel@m.gmane.org; Mon, 27 Oct 2014 14:18:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xiorl-0008NL-SC for emacs-devel@gnu.org; Mon, 27 Oct 2014 14:18:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xiore-00029B-Dm for emacs-devel@gnu.org; Mon, 27 Oct 2014 14:18:05 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:34986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xiore-000295-7D for emacs-devel@gnu.org; Mon, 27 Oct 2014 14:17:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xiorc-00044I-Qv for emacs-devel@gnu.org; Mon, 27 Oct 2014 19:17:56 +0100 Original-Received: from c-76-28-195-250.hsd1.wa.comcast.net ([76.28.195.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2014 19:17:56 +0100 Original-Received: from eric by c-76-28-195-250.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Oct 2014 19:17:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-195-250.hsd1.wa.comcast.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:spX8K6c4Ndn7dfMnmjFLC51b6AA= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:175901 Archived-At: Right now, using edebug with eieio objects can be difficult, as they are printed with regular prin1. In the case of very large objects (I ran into this with the Gnus registry object, which can have an enormous hash table attached to it), Emacs can run out memory as the cursor passes the variable holding the object, and tries to pretty print it. 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? Eric