From fbea9822ae46dea07808ff48d433abe1c7bc28de Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Wed, 5 Feb 2020 02:52:46 +0800 Subject: [PATCH] Fix cache building --- org-roam.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam.el b/org-roam.el index 9d9fd95..9cef2d6 100644 --- a/org-roam.el +++ b/org-roam.el @@ -146,7 +146,7 @@ Valid states are 'visible, 'exists and 'none." (contents-hash (gethash path backlinks))) (if contents-hash (if-let ((contents-list (gethash relative-file contents-hash))) - (let ((updated (append content contents-list))) + (let ((updated (cons content contents-list))) (puthash relative-file updated contents-hash) (puthash path contents-hash backlinks)) (puthash relative-file (list content) contents-hash)