From 8c4d8d739be87106d185c5531c284b5e65e892aa Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 14 Jun 2018 03:06:49 +0200 Subject: [PATCH] Remove (provide ...) forms from package autoloads --- core/core-dispatcher.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-dispatcher.el b/core/core-dispatcher.el index 3c5e39ccd..879e15469 100644 --- a/core/core-dispatcher.el +++ b/core/core-dispatcher.el @@ -509,7 +509,7 @@ This should be run whenever your `doom!' block or update your packages." (when (file-exists-p file) (insert "(let ((load-file-name " (prin1-to-string (abbreviate-file-name file)) "))\n") (insert-file-contents file) - (while (re-search-forward "^\\(?:;;\\(.*\n\\)\\|\n\\)" nil t) + (while (re-search-forward "^\\(?:;;\\(.*\n\\)\\|\n\\|(provide '[^\n]+\\)" nil t) (unless (nth 8 (syntax-ppss)) (replace-match "" t t))) (unless (bolp) (insert "\n"))