Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 emacs lisp 中,有没有办法将哈希表序列化到文件中,然后在以后再次读取它?
谢谢
从 Emacs 23.2 左右开始,这很容易实现。检查与
(featurep 'hashtable-print-readable)
如果返回t,您可以简单地prin1将哈希表添加到缓冲区,然后保存它并read稍后保存。
t
prin1
read