From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Enhancement suggestion: prin1 extension mechanism Date: Mon, 15 Sep 2008 11:31:34 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <86zlm9pdzt.fsf@lifelogs.com> References: <200809110325.m8B3PYFE031034@projectile.siege-engine.com> <200809141547.m8EFlLIO006288@projectile.siege-engine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221496576 7641 80.91.229.12 (15 Sep 2008 16:36:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2008 16:36:16 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 15 18:37:12 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KfH4R-0000y5-UE for ged-emacs-devel@m.gmane.org; Mon, 15 Sep 2008 18:37:04 +0200 Original-Received: from localhost ([127.0.0.1]:37386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfH3R-0000tC-2R for ged-emacs-devel@m.gmane.org; Mon, 15 Sep 2008 12:36:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfGzP-00079i-MT for emacs-devel@gnu.org; Mon, 15 Sep 2008 12:31:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfGzN-00078t-TE for emacs-devel@gnu.org; Mon, 15 Sep 2008 12:31:51 -0400 Original-Received: from [199.232.76.173] (port=37926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfGzN-00078N-Nf for emacs-devel@gnu.org; Mon, 15 Sep 2008 12:31:49 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:47084 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfGzK-0002nb-Ew for emacs-devel@gnu.org; Mon, 15 Sep 2008 12:31:46 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KfGzH-0000XJ-QV for emacs-devel@gnu.org; Mon, 15 Sep 2008 16:31:43 +0000 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2008 16:31:43 +0000 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2008 16:31:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:cW1GU4ApaLngWYyauwPy8P+7fAs= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103889 Archived-At: On Mon, 15 Sep 2008 09:23:26 -0400 "Richard M. Stallman" wrote: RMS> Eric Ludlam wrote: RMS> EL> All of EIEIO is supported by a single addition to this feature. I RMS> EL> also use it for other data structures that are not EIEIO classes. RMS> IF we are going to have an extension of this kind, it would be much RMS> cleaner to built it into print.c, using data structures convenient for RMS> print.c to implement. Sorry to jump in, but I recently asked about a way to cleanly dump and restore a hashtable. Can that work coincide with the enhancement Eric is discussing, which if I understand correctly is a condensed prin1 suitable for debugging? I mention it because it seems sensible to think both in the direction of Eric's work and in the direction of deeper inspection of the built-in Emacs Lisp data structures. Maybe it can be simply a "dump level" parameter to prin1, going from "condensed" to "normal" to "deep," separate from the print-level parameter or joined with it. I don't know print.c (yet), but if no one else is interested in doing this, I can put the hashtable dump functionality on my TODO list. Thanks Ted