mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix void-function error in doom//reload-autoloads
Don't use a third party library in a function that could potentially run before packages are installed, ya big silly!
This commit is contained in:
@ -595,7 +595,8 @@ This should be run whenever init.el or an autoload file is modified. Running
|
|||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(while (re-search-forward "^\\s-*(" nil t)
|
(while (re-search-forward "^\\s-*(" nil t)
|
||||||
(unless (sp-point-in-string-or-comment)
|
(unless (or (nth 4 (syntax-ppss))
|
||||||
|
(nth 3 (syntax-ppss)))
|
||||||
;; Replace autoload paths with absolute paths for fastest
|
;; Replace autoload paths with absolute paths for fastest
|
||||||
;; resolution during load
|
;; resolution during load
|
||||||
(when (eq (sexp-at-point) 'autoload)
|
(when (eq (sexp-at-point) 'autoload)
|
||||||
|
Reference in New Issue
Block a user