[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/why-this b69263c66b 41/59: Fix "Invalid face attribute :ba
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/why-this b69263c66b 41/59: Fix "Invalid face attribute :background nil" |
Date: |
Sun, 27 Nov 2022 16:02:53 -0500 (EST) |
branch: elpa/why-this
commit b69263c66b63680e1db81f6da98de00c230c7384
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Fix "Invalid face attribute :background nil"
---
README.org | 4 ++++
why-this.el | 29 +++++++++++++++--------------
2 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/README.org b/README.org
index cacff98f5c..24b2b939bc 100644
--- a/README.org
+++ b/README.org
@@ -16,6 +16,10 @@ Editing history with heat map.
* Install
+** MELPA
+
+=M-x package-refresh-contents= and =M-x package-install RET why-this=.
+
** straight.el
#+begin_src emacs-lisp
diff --git a/why-this.el b/why-this.el
index f2cbfbec1e..b2cdb74789 100644
--- a/why-this.el
+++ b/why-this.el
@@ -364,21 +364,22 @@ TIME-FORMAT is used to format data."
(if (not why-this-calculate-background)
'why-this-face
`(:background
- ,(face-background
- (pcase type
- ('region
- (if (bound-and-true-p solaire-mode)
- 'solaire-region-face
- 'region))
- ('line
- (if (bound-and-true-p hl-line-mode)
+ ,(or (face-background
+ (pcase type
+ ('region
(if (bound-and-true-p solaire-mode)
- 'solaire-hl-line-face
- 'hl-line)
- 'why-this-face))
- (_
- 'why-this-face))
- nil t)
+ 'solaire-region-face
+ 'region))
+ ('line
+ (if (bound-and-true-p hl-line-mode)
+ (if (bound-and-true-p solaire-mode)
+ 'solaire-hl-line-face
+ 'hl-line)
+ 'why-this-face))
+ (_
+ 'why-this-face))
+ nil t)
+ 'unspecified)
:inherit why-this-face)))
(defvar why-this-mode)
- [nongnu] elpa/why-this da0fa6da7e 52/59: Bump version to 2.0.1, (continued)
- [nongnu] elpa/why-this da0fa6da7e 52/59: Bump version to 2.0.1, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this f0ef9e3730 51/59: Show overlay only on selected window, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this f18b8d8d18 43/59: Lower required Emacs version, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this c5d192cfee 56/59: Some cleanup, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 4552587fd4 49/59: Determine line width correctly, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this ca4cf46d6e 40/59: Don't error on nonexistant parent directory, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 066786ede1 17/59: Add README, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this a4e7a1a126 47/59: Bump version to 2.0, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 71baf80f9a 42/59: Don't use overlays while annonating, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this a706d26b7c 45/59: Fix wrong face in annonate buffer, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this b69263c66b 41/59: Fix "Invalid face attribute :background nil",
ELPA Syncer <=