From 0e912bd2881b75de337d11ce2f389d7cc3d8a995 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Mon, 18 Oct 2021 13:36:14 +0800 Subject: [PATCH] org-persist.el: Make sure that org-persist-path is absolute --- lisp/org-persist.el | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lisp/org-persist.el b/lisp/org-persist.el index 78347e666..e58a5f96d 100644 --- a/lisp/org-persist.el +++ b/lisp/org-persist.el @@ -35,12 +35,13 @@ (declare-function org-next-visible-heading "org" (arg)) (declare-function org-at-heading-p "org" (&optional invisible-not-ok)) -(defvar org-persist-path (org-file-name-concat - (let ((cache-dir (xdg-cache-home))) - (if (seq-empty-p cache-dir) - user-emacs-directory - cache-dir)) - "org-persist/") +(defvar org-persist-path (expand-file-name + (org-file-name-concat + (let ((cache-dir (xdg-cache-home))) + (if (seq-empty-p cache-dir) + user-emacs-directory + cache-dir)) + "org-persist/")) "Directory where the data is stored.") (defvar org-persist-index-file "index"