From 78f1621fda6cb72cddc88f5d0894feed9c2d5966 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 1 Mar 2020 23:35:59 -0500 Subject: [PATCH] file-exists-p -> file-writable-p for org-id-locations-file The IDs file isn't much good to use if it isn't writable. --- modules/lang/org/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 888fbbb8c..87aea8d89 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -959,6 +959,6 @@ compelling reason, so..." ;; writeable before trying to read/write to it. (defadvice! +org--fail-gracefully-a (&rest _) :before-while '(org-id-locations-save org-id-locations-load) - (file-exists-p org-id-locations-file)) + (file-writable-p org-id-locations-file)) (add-hook 'org-open-at-point-functions #'doom-set-jump-h))