Browse Source

org-persist.el: Make sure that org-persist-path is absolute

Ihor Radchenko 3 years ago
parent
commit
0e912bd288
1 changed files with 7 additions and 6 deletions
  1. 7 6
      lisp/org-persist.el

+ 7 - 6
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"