From 6f1b96bc9a20080e2f1d77861c05f73b8bc4a53b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 19 Feb 2018 01:31:13 -0500 Subject: [PATCH] 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! --- core/core-packages.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-packages.el b/core/core-packages.el index ddd914897..e2b3e57a3 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -595,7 +595,8 @@ This should be run whenever init.el or an autoload file is modified. Running (with-current-buffer buf (goto-char (point-min)) (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 ;; resolution during load (when (eq (sexp-at-point) 'autoload)