Closed Stebalien closed 8 months ago
I have tried it already, but without success. I agree that this is safer.
Hm. I did a basic test and it looked like it had no issues reading hash tables. Do you happen to remember the error?
The following should work:
(with-temp-buffer
(insert-file-contents ".session.el")
(goto-char (point-min))
(read (current-buffer)))
Probably I have used it wrong. It works. I will fix it.
I see you're saving a file with
(setq ellama--current-session ...
. A slightly safer way to do this is to store just the data and useread
to load it. Unlikeeval
, that won't execute any code (so it's safer to, e.g., share session files with others).