From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83243 Path: news.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.gnus.general Subject: XEmacs hash table representation (was XEmacs builds failing - gnus-spec.el) Date: Sat, 01 Jun 2013 15:04:13 -0700 Message-ID: <6219.1370124253@rawbw.com> References: <201305280043.r4S0hvFT030018@shell0.rawbw.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1370124384 577 80.91.229.3 (1 Jun 2013 22:06:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Jun 2013 22:06:24 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31509@lists.math.uh.edu Sun Jun 02 00:06:23 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UitwM-00049q-EH for ding-account@gmane.org; Sun, 02 Jun 2013 00:06:22 +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 1UituW-0002Di-AQ; Sat, 01 Jun 2013 17:04:28 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1UituP-0002DV-Og for ding@lists.math.uh.edu; Sat, 01 Jun 2013 17:04:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1UituO-00054f-37 for ding@lists.math.uh.edu; Sat, 01 Jun 2013 17:04:21 -0500 Original-Received: from shell0.rawbw.com ([198.144.192.45] ident=root) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UituM-0000IC-14 for ding@gnus.org; Sun, 02 Jun 2013 00:04:18 +0200 Original-Received: from rawbw.com (m208-249.dsl.rawbw.com [198.144.208.249]) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r51M4Eh8030336 for ; Sat, 1 Jun 2013 15:04:14 -0700 (PDT) (envelope-from mike.kupfer@xemacs.org) In-Reply-To: My message of "Mon, 27 May 2013 17:43:56 PDT." <201305280043.r4S0hvFT030018@shell0.rawbw.com> X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.3.1 X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.4955 Ham tokens: 0.000-112--822h-0s--0d--H*i:sk:2013052, 0.000-45--328h-0s--0d--H*x:Emacs, 0.000-16--115h-0s--0d--H*i:2013, 0.000-15--109h-0s--0d--H*i:May, 0.000-15--105h-0s--0d--H*i:message Spam tokens: 0.995-8815--230h-37004s--0d--H*r:quimby.gnus.org, 0.993-8267--349h-35250s--0d--H*Ad:D*gnus.org, 0.992-3367--151h-14390s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.990-8335--465h-36005s--0d--HTo:D*gnus.org, 0.990-8730--496h-37745s--0d--H*RU:quimby.gnus.org Autolearn status: ham 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4955] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83243 Archived-At: Mike Kupfer wrote: > David Engster wrote: > > Another example is the registry, which is not persistent under XEmacs > > because it lacks a printed representation for hash tables. > > Interesting; thanks. It looks like 21.5 has a printed representation, > but the output from #'print can't be fed back to #'read. I'll file an > XEmacs bug. I looked into this some more. It turns out that #'print et al can be told to use a read-able representation for hash tables; it's just not the default. To get a read-able representation, you first have to bind print-readably to t, as in (setq myhash (make-hash-table)) (let ((print-readably t)) (prin1-to-string myhash)) I suggested making the read-able representation the default, but that was rejected. Does Gnus need to preserve the hash table metadata (rehash-size et al)? I was wondering if it would work just as well for Gnus to use an alist as the external representation for a hash table. regards, mike