I have a file, "/path/to/token-file.el"
, which contains an alist:
((access
((access_token 123abc456)
(timestamp
((43 5 21 29 12 2021 3 nil 0)
(Wed, 29 Dec 2021 21:05:43 GMT))))))
I am extracting the alist from the token-file.el
with the following Lisp code:
(let ((alist (with-temp-buffer
(insert-file-contents-literally "/path/to/token-file.el")
(read (current-buffer)))))
(message "alist: %s" alist))
The human readable timestamp is being modified by read
:
BEFORE: (Wed, 29 Dec 2021 21:05:43 GMT)
AFTER: (Wed (, 29) Dec 2021 21:05:43 GMT)
How can I transfer the alist from the file to a let-bound variable without modifying the timestamp?