From 304424d844b861a0bc0a59f1ad233cbde3771e28 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 4 Nov 2020 14:40:44 -0500 Subject: [PATCH] Fix #4212: slow file checks over network shares On windows. --- modules/lang/org/config.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index d0d681c10..e51114cc3 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -411,6 +411,8 @@ relative to `org-directory', unless it is an absolute path." "file" :face (lambda (path) (if (or (file-remote-p path) + ;; filter out network shares on windows (slow) + (and IS-WINDOWS (string-prefix-p "//" path)) (file-exists-p path)) 'org-link 'error)))