emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/standard-themes 73b76c1383 1/6: Replace cl-remove-if-no


From: ELPA Syncer
Subject: [elpa] externals/standard-themes 73b76c1383 1/6: Replace cl-remove-if-not with seq-filter
Date: Sun, 26 Nov 2023 00:59:01 -0500 (EST)

branch: externals/standard-themes
commit 73b76c1383a712482fb72971ee4bc00dd91a2a09
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Replace cl-remove-if-not with seq-filter
    
    The seq library is preloaded, whereas cl-lib is not. We do not need
    the latter here.
---
 standard-themes.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/standard-themes.el b/standard-themes.el
index 739ecff431..ef714272b6 100644
--- a/standard-themes.el
+++ b/standard-themes.el
@@ -625,11 +625,9 @@ symbol, which is safe when used as a face attribute's 
value."
       value
     'unspecified))
 
-(declare-function cl-remove-if-not "cl-seq" (cl-pred cl-list &rest cl-keys))
-
 (defun standard-themes--list-enabled-themes ()
   "Return list of `custom-enabled-themes' with standard- prefix."
-  (cl-remove-if-not
+  (seq-filter
    (lambda (theme)
      (string-prefix-p "standard-" (symbol-name theme)))
    custom-enabled-themes))
@@ -644,7 +642,7 @@ symbol, which is safe when used as a face attribute's 
value."
 (defun standard-themes--list-known-themes ()
   "Return list of `custom-known-themes' with standard- prefix."
   (standard-themes--enable-themes)
-  (cl-remove-if-not
+  (seq-filter
    (lambda (theme)
      (string-prefix-p "standard-" (symbol-name theme)))
    custom-known-themes))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]