Fix unused return value warnings

When byte-compiling or reloading autoloads files.
This commit is contained in:
Henrik Lissner 2018-05-30 13:31:04 +02:00
parent cf974db0bf
commit bb9f00e275
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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, ;; Remove `load-path' and `auto-mode-alist' modifications (most of them,
;; at least); they are cached later, so all those membership checks are ;; at least); they are cached later, so all those membership checks are
;; unnecessary overhead. ;; 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)) (goto-char (match-beginning 1))
(kill-sexp)) (kill-sexp))
(print! (green "✓ Removed load-path/auto-mode-alist entries"))) (print! (green "✓ Removed load-path/auto-mode-alist entries")))