From 85bf4acd3e0f29b5068cdc5659986b906f70f2b2 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 1 Jul 2021 00:00:16 +0100 Subject: nits --- lib/doc/jao-org-notes.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/doc') diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el index 77cca9e..24698b9 100644 --- a/lib/doc/jao-org-notes.el +++ b/lib/doc/jao-org-notes.el @@ -103,8 +103,9 @@ (interactive "P") (when refresh (jao-org-notes--update-tags)) (or jao-org-notes--tags - (setq jao-org-notes--tags - (read (find-file-noselect jao-org-notes-tags-cache-file))))) + (let ((b (find-file-noselect jao-org-notes-tags-cache-file))) + (with-current-buffer b (goto-char (point-min))) + (setq jao-org-notes--tags (read b))))) (defun jao-org-notes--read-tags () (unless jao-org-notes--tags (jao-org-notes-read-tags-cache)) -- cgit v1.2.3