我在 ielm 中评估了以下 elisp 代码:
(setq foo-hash (make-hash-table))
(puthash "location" "house" foo-hash)
(defun foo-start ()
(interactive)
(message (gethash "location" foo-hash)))
但是,当我跑步(foo-start)或(gethash "location" foo-hash)我只nil得到回声时。只foo-hash在 ielm 回声中输入:#s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8 data ("location" "house"))
这是一个错误还是我做错了什么?
Emacs 版本:24.0.95.1