branch: externals/ef-themes commit edaae8c1d1bea8e80a511255086dd9967025f782 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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))