From 55736ac2a65c6f4f6d5124a933f2d11b8d8a8198 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 31 Jul 2022 13:24:11 +0200 Subject: [PATCH] fix(lib): prevent autoload failure at startup In some edge cases, an early call to doom-log will cause an autoload error because of one or more of the following is true: - The autoloads file hasn't been generated or loaded, - The autoloads file is out of date (especially relevant after b9933e6), - doom-cli hasn't loaded lib/files eagerly yet. To avoid this, and due to how prolific doom-log's uses are, and how trivial the dependency is, I simply remove the dependency. Amend: b9933e663771 --- lisp/lib/print.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/lib/print.el b/lisp/lib/print.el index d9a6a33c8..6cae5a49b 100644 --- a/lisp/lib/print.el +++ b/lisp/lib/print.el @@ -193,7 +193,7 @@ debug mode is off." ((when-let (file (ignore-errors (file!))) (format "[%s] " (file-relative-name - file (doom-path (file-name-directory file) "../"))))) + file (expand-file-name "../" (file-name-directory file)))))) (time))) ,output) ,@args)