From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: print hash table to disk and reread in hash table Date: Fri, 10 Oct 2008 22:38:16 +0200 Organization: http://groups.google.com Message-ID: References: <34f9604c-a23b-4ad9-9c84-f45884a6df23@x16g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223671327 27246 80.91.229.12 (10 Oct 2008 20:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 20:42:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 10 22:43:02 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KoOot-0007Nx-Ex for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 22:42:43 +0200 Original-Received: from localhost ([127.0.0.1]:53463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoOnp-0006sF-AG for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Oct 2008 16:41:37 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed4-a.proxad.net!nnrp8-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:MR9z1QbApf49hBKBgKABGNVMgMc= Original-Lines: 10 Original-NNTP-Posting-Date: 10 Oct 2008 22:38:16 MEST Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: 1223671096 news-3.free.fr 32083 82.240.200.149:49819 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:163339 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58681 Archived-At: Xah writes: > if i have a hash table in elisp, is there a way to save it to disk and > reread in when starting emacs? You can try to convert the hash table to an alist using gnus-hashtable-to-alist, save the alist somewhere, then read it back at startup using gnus-alist-to-hashtable. These functions come from gnus, the emacs mailreader, which ships with a basic emacs install.