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

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

[elpa] externals/ef-themes edaae8c1d1: Refine ef-themes--toggle-theme-p


From: ELPA Syncer
Subject: [elpa] externals/ef-themes edaae8c1d1: Refine ef-themes--toggle-theme-p family check
Date: Sat, 3 Dec 2022 08:57:34 -0500 (EST)

branch: externals/ef-themes
commit edaae8c1d1bea8e80a511255086dd9967025f782
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Refine ef-themes--toggle-theme-p family check
---
 ef-themes.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ef-themes.el b/ef-themes.el
index 34b2c430e4..b3ffc93911 100644
--- a/ef-themes.el
+++ b/ef-themes.el
@@ -491,7 +491,8 @@ is ignored in this scenario."
 (defun ef-themes--toggle-theme-p ()
   "Return non-nil if `ef-themes-to-toggle' are valid."
   (mapc (lambda (theme)
-          (if (memq theme ef-themes-collection)
+          (if (or (memq theme ef-themes-collection)
+                  (memq theme (ef-themes--list-known-themes)))
               theme
             (user-error "`%s' is not part of `ef-themes-collection'" theme)))
         ef-themes-to-toggle))



reply via email to

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