From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80127 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.gnus.general Subject: Re: Registry warning? Date: Thu, 29 Sep 2011 19:52:08 +0200 Message-ID: <87zkhngrsn.fsf@randomsample.de> References: <84wrdom4xl.fsf@davestoy.home> <87mxek10p4.fsf@randomsample.de> <87oby5slkf.fsf@lifelogs.com> <87oby4nqpi.fsf@lifelogs.com> <87oby3zy1y.fsf@randomsample.de> <87k48rn423.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317318824 728 80.91.229.12 (29 Sep 2011 17:53:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2011 17:53:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28421@lists.math.uh.edu Thu Sep 29 19:53:40 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R9Knj-0006h7-ES for ding-account@gmane.org; Thu, 29 Sep 2011 19:53:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1R9KmO-0000LX-2d; Thu, 29 Sep 2011 12:52:16 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R9KmM-0000LN-GM for ding@lists.math.uh.edu; Thu, 29 Sep 2011 12:52:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R9KmK-0008Kf-Cj for ding@lists.math.uh.edu; Thu, 29 Sep 2011 12:52:13 -0500 Original-Received: from randomsample.de ([83.169.19.17]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R9KmI-0003v9-1e for ding@gnus.org; Thu, 29 Sep 2011 19:52:10 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:To:From; bh=sPsqigfox1tohGUVa1r2CskLVAJ+CgTanE+KCAPxv4U=; b=NG8dxmBUiaZWC0C+TtODK5RWJy9pM1ZzjHM0QqOOJTuUgPKYShYNtU9fURyz2x089A7lNEZqBVvOr0YK3feDJR0m4q3mHgeufcy+k+4izyVkCJyJ9OU5gDjFY/5D/DVV; Original-Received: from dslc-082-083-046-139.pools.arcor-ip.net ([82.83.46.139] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R9KmH-0000v7-Fu for ding@gnus.org; Thu, 29 Sep 2011 19:52:09 +0200 In-Reply-To: <87k48rn423.fsf@lifelogs.com> (Ted Zlatanov's message of "Thu, 29 Sep 2011 03:30:44 -0500") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Mail-Copies-To: never Mail-Followup-To: ding@gnus.org X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80127 Archived-At: Ted Zlatanov writes: > On Thu, 29 Sep 2011 08:02:01 +0200 David Engster wrote: > > DE> Ted Zlatanov writes: >>> On Wed, 28 Sep 2011 09:29:33 +0200 David Engster wrote: > > DE> No. If you look in your mails somewhere around May, you'll see I wrote > DE> this to you when discussing ERT tests on Emacs 22. EIEIO cannot > DE> magically save any LISP structure (what about recursive structures, for > DE> example?). It uses prin1 and hopes for the best, but you can provide > DE> your own printer in the ':printer' slot. >>> >>> Thanks for repeating the information, I either forgot or misunderstood >>> it. So can we provide a custom printer for Emacs 23.1 and older? > > DE> Yes, for some definition of "we" (read: not me). ;-) > > Is there an API for this printer? What functions must it provide? We > can just reuse the old registry save/load code. It must do what `prin1' does, minus the optional PRINTCHARFUN argument. That means, it has to print the slot in a way that can later be understood by `read'. See also section 3.2 of the EIEIO info: (info "(eieio)Slot options") -David