branch: externals/modus-themes
commit bcaf0835fd9c0af2e42f7f7ed04fb83b087c9736
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Require color.el at all times
    
    This is because other packages may use some of the color-related
    functions we provide without calling modus-themes-generate-palette.
---
 modus-themes.el | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modus-themes.el b/modus-themes.el
index df8006c212..20a49cb067 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -37,6 +37,7 @@
 
 
 
+(require 'color)
 (eval-when-compile
   (require 'subr-x)
   (require 'cl-lib))
@@ -7532,9 +7533,6 @@ defined command's symbol is FAMILY-SUFFIX, like 
`modus-themes-rotate'."
 
 ;;;; Generate a palette given the base colors
 
-(declare-function color-lighten-name "color" (name percent))
-(declare-function color-darken-name "color" (name percent))
-
 ;; NOTE 2025-11-25: This is a copy of `color-blend' from Emacs 31.  We
 ;; should remove this in the future.
 (defun modus-themes-blend (a b &optional alpha)
@@ -7665,7 +7663,6 @@ COOL-OR-WARM-PREFERENCE.  This inferred palette will be
 With optional MAPPINGS use them instead of trying to derive new ones.
 If MAPPINGS is nil, generate some essential color mappings and let the
 rest come from CORE-PALETTE."
-  (require 'color)
   (when (seq-some
          (lambda (entry)
            (not (stringp (cadr entry))))

Reply via email to