Serializing an emacs lisp hash for a file

In emacs lisp, is there a way to serialize a hash table into a file and then read it again later?

thank

+5
source share
1 answer

This is easily possible since Emacs 23.2 or so. Check with

(featurep 'hashtable-print-readable)

If this returns t, you can simply prin1hash the table into a buffer, save it readlater.

+8
source

All Articles