Skip to content

Commit 65f6772

Browse files
tmurphthomasf
authored andcommitted
ignore all the solarized color variables
This ensures that after macro-expansion each lexical variable is used at least once, preventing a wall of "Unused lexical variable" warnings when folks byte-compile the package (as happens when installing from MELPA).
1 parent 5d13673 commit 65f6772

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

solarized.el

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,27 @@ customize the resulting theme."
376376
(s-diffstat-changed-fg blue)
377377
(s-diffstat-removed-fg red))
378378

379+
;; silence the byte compiler
380+
(ignore class light-class dark-class theme-name variant
381+
,@(mapcar 'car color-palette*)
382+
s-base03 s-base02 s-base01 s-base00 s-base3 s-base2
383+
s-base1 s-base0 base03 base02 base01 base00 base0 base1
384+
base2 base3 s-line yellow-hc yellow-lc orange-hc
385+
orange-lc red-hc red-lc magenta-hc magenta-lc violet-hc
386+
violet-lc blue-hc blue-lc cyan-hc cyan-lc green-hc
387+
green-lc s-maybe-bold s-maybe-italic s-variable-pitch
388+
s-fringe-bg s-fringe-fg s-header-line-fg s-header-line-bg
389+
s-header-line-underline s-mode-line-fg s-mode-line-bg
390+
s-mode-line-underline s-mode-line-buffer-id-fg
391+
s-mode-line-inactive-fg s-mode-line-inactive-bg
392+
s-mode-line-inactive-bc s-diff-A-bg s-diff-A-fg
393+
s-diff-fine-A-bg s-diff-fine-A-fg s-diff-B-bg s-diff-B-fg
394+
s-diff-fine-B-bg s-diff-fine-B-fg s-diff-Ancestor-bg
395+
s-diff-Ancestor-fg s-diff-fine-Ancestor-bg
396+
s-diff-fine-Ancestor-fg s-diff-C-bg s-diff-C-fg
397+
s-diff-fine-C-bg s-diff-fine-C-fg s-diff-context-fg
398+
s-diff-heading-bg s-diffstat-added-fg
399+
s-diffstat-changed-fg s-diffstat-removed-fg)
379400
;; NOTE: `custom--inhibit-theme-enable' turn-off needed
380401
;; childtheme works well disscussed in #352
381402
(let ((custom--inhibit-theme-enable nil))

0 commit comments

Comments
 (0)