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.
This commit is contained in:
Henrik Lissner 2022-09-24 15:43:06 +02:00
parent f9201eb218
commit 71b2b09f5c
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -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)