From 71b2b09f5c6aab2459d7f0109417d7cffdf0c0fc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 24 Sep 2022 15:43:06 +0200 Subject: [PATCH] fix(cli): doom-cli-load: replace load! w/ doom-load load! effectively loads (file-name-concat (dir!) PATH) which, in this case, is concatenating two absolute file paths. Emacs does the right thing and loads PATH, but I don't want to rely on this good fortune as it could be broken in a future update. --- lisp/doom-cli.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom-cli.el b/lisp/doom-cli.el index 684fc0239..ec6bc9ea5 100644 --- a/lisp/doom-cli.el +++ b/lisp/doom-cli.el @@ -1437,7 +1437,7 @@ ARGS are options passed to less. If DOOMPAGER is set, ARGS are ignored." (path (locate-file-internal path doom-cli-load-path load-suffixes))) (doom-log "load: autoload %s" path) (let ((doom-cli--plist (doom-cli-plist cli))) - (load! path)) + (doom-load path)) (let* ((key (doom-cli-key cli)) (cli (gethash key doom-cli--table))) (when (doom-cli-autoload cli)