mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user