Skip to content

Commit

Permalink
Fix Org agenda date nil background
Browse files Browse the repository at this point in the history
We do not want to have a nil attribute because some code may
unconditionally expect a non-nil value and thus throw an error about
invalid face specs.
  • Loading branch information
protesilaos committed Nov 20, 2021
1 parent b64ba5e commit 45fa1ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modus-themes.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Protesilaos Stavrou <info@protesilaos.com>
;; URL: https://gitlab.com/protesilaos/modus-themes
;; Version: 1.7.0
;; Last-Modified: <2021-11-18 12:28:22 +0200>
;; Last-Modified: <2021-11-20 13:12:13 +0200>
;; Package-Requires: ((emacs "27.1"))
;; Keywords: faces, theme, accessibility

Expand Down Expand Up @@ -3506,8 +3506,10 @@ weight. Optional UL applies an underline."
(t
'unspecified))
:background
(unless (memq 'underline-today properties)
bg)
(cond
((memq 'underline-today properties)
'unspecified)
((or bg 'unspecified)))
:foreground
(cond
((and (memq 'grayscale properties)
Expand Down

0 comments on commit 45fa1ec

Please sign in to comment.