[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: print hash table to disk and reread in hash table
From: |
Xah |
Subject: |
Re: print hash table to disk and reread in hash table |
Date: |
Wed, 27 Aug 2008 22:27:47 -0700 (PDT) |
User-agent: |
G2/1.0 |
but is there a function or lib to save hashtable to disk? i.e.
sometimes called serializing?
Xah
∑ http://xahlee.org/
☄
On Aug 27, 10:21 pm, Thierry Volpiatto <thierry.volpia...@gmail.com>
wrote:
> Xah <xah...@gmail.com> writes:
> > if i have a hash table in elisp, is there a way to save it to disk and
> > reread in when starting emacs?
>
> What you can do is creating a named hash-table at each time you start
> emacs and load a file containing (puthash that...) (puthash this...)
> etc... Here an example of one of my files:
>
> ,----
> | ;;; dvc-bookmarks-cache -*- mode: emacs-lisp; coding: utf-8; -*-
> | (puthash 'MAIL '((color . dvc-excluded) (state . "open") (time-stamp .
> "2008.06.23")) dvc-bookmarks-cache)
> | (puthash 'CONFIG '((color . dvc-source) (state . "open") (time-stamp .
> "2008.06.23")) dvc-bookmarks-cache)
> | (puthash 'DVC '((color . dvc-mark) (state . "open") (time-stamp .
> "2008.08.15")) dvc-bookmarks-cache)
> | (puthash 'SOURCES '((color . dvc-unknown) (state . "open") (time-stamp .
> "2008.06.23")) dvc-bookmarks-cache)
> `----
>
> The hash-table here is `dvc-bookmark-cache'
>
> --
> A + Thierry Volpiatto
> Location: Saint-Cyr-Sur-Mer - France
- print hash table to disk and reread in hash table, Xah, 2008/08/27
- Re: print hash table to disk and reread in hash table, Thierry Volpiatto, 2008/08/28
- Message not available
- Re: print hash table to disk and reread in hash table,
Xah <=
- Re: print hash table to disk and reread in hash table, Thierry Volpiatto, 2008/08/28
- Re: print hash table to disk and reread in hash table, Ted Zlatanov, 2008/08/28
- Re: print hash table to disk and reread in hash table, Eli Zaretskii, 2008/08/28
- Message not available
- Re: print hash table to disk and reread in hash table, Ted Zlatanov, 2008/08/29
- Re: print hash table to disk and reread in hash table, Eli Zaretskii, 2008/08/29
- Message not available
- Re: print hash table to disk and reread in hash table, Ted Zlatanov, 2008/08/29
Re: print hash table to disk and reread in hash table, Niels Giesen, 2008/08/28