From c536fd4f2e257197f2dcdb70f51d2fb9b9fa7de7 Mon Sep 17 00:00:00 2001 From: Mykhailo Shevchuk Date: Sun, 26 Jul 2020 18:30:54 +0200 Subject: [PATCH] (fix): check if path is remote before using file-truename (#970) this prevents cache builds from stalling, on paths that point to remote files --- org-roam.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org-roam.el b/org-roam.el index f2d6f39..f8532c3 100644 --- a/org-roam.el +++ b/org-roam.el @@ -584,7 +584,9 @@ it as FILE-PATH." :point begin)) (names (pcase type ("file" - (list (file-truename (expand-file-name path (file-name-directory file-path))))) + (if (file-remote-p path) + (list path) + (list (file-truename (expand-file-name path (file-name-directory file-path)))))) ("id" (list (car (org-roam-id-find path)))) ((pred (lambda (typ)