From bb9f00e2753d877973cb74cffcf0a072a5606f3a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 30 May 2018 13:31:04 +0200 Subject: [PATCH] Fix unused return value warnings When byte-compiling or reloading autoloads files. --- core/autoload/modules.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autoload/modules.el b/core/autoload/modules.el index db1950764..72b01a7b6 100644 --- a/core/autoload/modules.el +++ b/core/autoload/modules.el @@ -234,7 +234,7 @@ This should be run whenever your `doom!' block or update your packages." ;; Remove `load-path' and `auto-mode-alist' modifications (most of them, ;; at least); they are cached later, so all those membership checks are ;; unnecessary overhead. - (while (re-search-forward "^\\s-*\\((\\(?:add-to-list\\|when (boundp \\)\\s-+'\\(?:load-path\\|auto-mode-alist\\)\\)" nil t) + (while (re-search-forward "^\\s-*\\((\\(?:add-to-list\\|\\(?:when\\|if\\) (boundp\\)\\s-+'\\(?:load-path\\|auto-mode-alist\\)\\)" nil t) (goto-char (match-beginning 1)) (kill-sexp)) (print! (green "✓ Removed load-path/auto-mode-alist entries")))