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

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

[nongnu] elpa/gruvbox-theme 4008f08cd5 088/258: eval cl or cl-lib when c


From: ELPA Syncer
Subject: [nongnu] elpa/gruvbox-theme 4008f08cd5 088/258: eval cl or cl-lib when compiling (#42)
Date: Sat, 1 Jan 2022 01:59:31 -0500 (EST)

branch: elpa/gruvbox-theme
commit 4008f08cd5356a122f0af921f04fdadae61ddb36
Author: nverno <noah.v.peart@gmail.com>
Commit: Jason Milkins <jasonm23@users.noreply.github.com>

    eval cl or cl-lib when compiling (#42)
    
    Adds an eval-when-compile to cl-lib for `cl-case`
---
 gruvbox-theme.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gruvbox-theme.el b/gruvbox-theme.el
index baa7399dc9..7f1f8998f1 100644
--- a/gruvbox-theme.el
+++ b/gruvbox-theme.el
@@ -32,6 +32,8 @@
 ;; to make better and more feature complete.
 
 ;;; Code:
+(eval-when-compile
+  (require 'cl-lib))
 
 (unless (>= emacs-major-version 24)
   (error "Requires Emacs 24 or later"))
@@ -97,7 +99,7 @@
       (gruvbox-aquamarine4      (if (display-graphic-p) "#83A598" 
"aquamarine4"))
       (gruvbox-turquoise4       (if (display-graphic-p) "#61ACBB" 
"turquoise4"))
 
-      (gruvbox-bg (case gruvbox-contrast
+      (gruvbox-bg (cl-case gruvbox-contrast
                    (hard gruvbox-dark0_hard)
                    (soft gruvbox-dark0_soft)
                    ;; Medium by default.



reply via email to

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