mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 09:32:53 +00:00
org-persist-gc: Fix edge case
* lisp/org-persist.el (org-persist-gc): Do not err when `org-persist-directory' is absent.
This commit is contained in:
parent
d52a775369
commit
afe5f3f692
|
@ -999,7 +999,8 @@ Also, remove containers associated with non-existing files."
|
|||
(remote-files-num 0)
|
||||
(orphan-files
|
||||
(delete (org-file-name-concat org-persist-directory org-persist-index-file)
|
||||
(directory-files-recursively org-persist-directory ".+"))))
|
||||
(when (file-exists-p org-persist-directory)
|
||||
(directory-files-recursively org-persist-directory ".+")))))
|
||||
(dolist (collection org-persist--index)
|
||||
(let* ((file (plist-get (plist-get collection :associated) :file))
|
||||
(web-file (and file (string-match-p "\\`https?://" file)))
|
||||
|
|
Loading…
Reference in a new issue