From 60f74c7696b846e0a805300c449f2e74d2175c7a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 17 Feb 2021 13:47:43 -0500 Subject: [PATCH] Resolve symlinks in module paths --- core/core-modules.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/core-modules.el b/core/core-modules.el index 8e7e7cc2e..ff6aea8a2 100644 --- a/core/core-modules.el +++ b/core/core-modules.el @@ -302,10 +302,11 @@ those directories. The first returned path is always `doom-private-dir'." mplist) (push (car key) mplist)) (throw 'doom-modules t)))) - (push (funcall fn category module - :flags (if (listp m) (cdr m)) - :path (doom-module-locate-path category module)) - results)))))) + (let ((path (doom-module-locate-path category module))) + (push (funcall fn category module + :flags (if (listp m) (cdr m)) + :path (if (stringp path) (file-truename path))) + results))))))) (unless doom-interactive-p (setq doom-inhibit-module-warnings t)) (nreverse results)))