From ca0dbc798d7c9b03f92c93476dfbdcd0550ae285 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 May 2020 04:18:20 -0400 Subject: [PATCH] Use shorter seq.el alternatives --- core/cli/autoloads.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/cli/autoloads.el b/core/cli/autoloads.el index 027c39dc3..51a85f221 100644 --- a/core/cli/autoloads.el +++ b/core/cli/autoloads.el @@ -54,9 +54,8 @@ one wants that.") (mapcan #'doom-glob doom-autoloads-files))) (doom-autoloads--scan (mapcar #'straight--autoloads-file - (cl-set-difference (hash-table-keys straight--build-cache) - doom-autoloads-excluded-packages - :test #'equal)) + (seq-difference (hash-table-keys straight--build-cache) + doom-autoloads-excluded-packages)) 'literal)) (print! (start "Byte-compiling autoloads file...")) (doom-autoloads--compile-file file) @@ -196,7 +195,7 @@ one wants that.") (require 'autoload) (let (autoloads) (dolist (file - (cl-remove-if-not #'file-readable-p files) + (seq-filter #'file-readable-p files) (nreverse (delq nil autoloads))) (with-temp-buffer (print! (debug "- Scanning %s") (relpath file doom-emacs-dir))