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:
Henrik Lissner 2018-02-19 01:31:13 -05:00
parent a967aa051a
commit 6f1b96bc9a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

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