[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dracula-theme 943faed 187/187: Reduce eval call scope
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dracula-theme 943faed 187/187: Reduce eval call scope |
Date: |
Thu, 21 Oct 2021 18:05:20 -0400 (EDT) |
branch: elpa/dracula-theme
commit 943faeda66931dd275fe83d858945bd07abacc5a
Author: Étienne Deparis <etienne@depar.is>
Commit: Étienne Deparis <etienne@depar.is>
Reduce eval call scope
---
dracula-theme.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/dracula-theme.el b/dracula-theme.el
index 484fa22..64e27a8 100644
--- a/dracula-theme.el
+++ b/dracula-theme.el
@@ -769,21 +769,21 @@ read it before opening a new issue about your will.")
'dracula
(let ((expand-with-func
(lambda (func spec)
- (when (and (eq func 'caddr)
- dracula-use-24-bit-colors-on-256-colors-terms)
- (setq func 'cadr))
(let (reduced-color-list)
- (eval `(let ,(dolist (col colors reduced-color-list)
- (push `(,(car col) ,(funcall func col))
- reduced-color-list))
- (eval `(backquote ,spec)))))))
+ (dolist (col colors reduced-color-list)
+ (push (list (car col) (funcall func col))
+ reduced-color-list))
+ (eval `(let ,reduced-color-list
+ (backquote ,spec))))))
whole-theme)
(pcase-dolist (`(,face . ,spec) faces)
(push `(,face
((((min-colors 16777216)) ; fully graphical envs
,(funcall expand-with-func 'cadr spec))
(((min-colors 256)) ; terminal withs 256 colors
- ,(funcall expand-with-func 'caddr spec))
+ ,(if dracula-use-24-bit-colors-on-256-colors-terms
+ (funcall expand-with-func 'cadr spec)
+ (funcall expand-with-func 'caddr spec)))
(t ; should be only tty-like envs
,(funcall expand-with-func 'cadddr spec))))
whole-theme))
- [nongnu] elpa/dracula-theme f7cf1b2 115/187: Add the match face and use it for region and isearch, (continued)
- [nongnu] elpa/dracula-theme f7cf1b2 115/187: Add the match face and use it for region and isearch, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 45fabf9 129/187: Add page breaks in code, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 81d0671 145/187: Update screenshot, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 759abc0 163/187: set powerline active and inactive dracula colors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 29fd49a 172/187: Improve selectrum colors, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 18846c4 180/187: Little change to test files, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 9f595ea 174/187: Merge branch 'ed-completions', ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 0a76928 179/187: Support which-key-mode, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 736b6cc 177/187: Little refacto, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 62c960d 186/187: Use same color for gnus than message mode and old mu4e-view mode, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 943faed 187/187: Reduce eval call scope,
ELPA Syncer <=
- [nongnu] elpa/dracula-theme 8e85b9e 152/187: Inherit from basic faces for lsp-ui-peek-highlight and lsp-ui-peek-selection, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 81ff36c 175/187: Support shadow face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme c29e408 164/187: Merge branch 'avelino-avelino/powerline-active-inactive', ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme 9705f01 156/187: Add support for Elfeed, ELPA Syncer, 2021/10/21
- [nongnu] elpa/dracula-theme c162aff 154/187: Add support for neotree package, ELPA Syncer, 2021/10/21