branch: externals/modus-themes
commit 7a76dca73183877e6993cb539ce80ffe5c0d2fb6
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Use seq-union in modus-themes-get-all-known-themes
Looks nicer than (delete-dups (append ...)) plus it sound more right.
---
modus-themes.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modus-themes.el b/modus-themes.el
index b60d52170e..aae748954c 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -1083,7 +1083,7 @@ Also see `modus-themes-get-all-known-themes'.")
With optional NO-DERIVATIVES, operate only on the `modus-themes-items'."
(let ((themes (if no-derivatives
modus-themes-items
- (delete-dups (append modus-themes-items
modus-themes-registered-items)))))
+ (seq-union modus-themes-items
modus-themes-registered-items))))
(mapc #'modus-themes--activate themes)))
(defun modus-themes-known-p (themes &optional show-error)