branch: elpa/popon
commit a2ef10db070a4254fe192e818578f6e05dabbdee
Author: Akib Azmain Turja <a...@disroot.org>
Commit: Akib Azmain Turja <a...@disroot.org>

    Fix #7: Don't check :extend face attribute in Emacs <27
---
 popon.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/popon.el b/popon.el
index cca377a5a0..4ea6e05e6b 100644
--- a/popon.el
+++ b/popon.el
@@ -377,7 +377,8 @@ when LINE-BEGINNINGS was calculated.")
                  (not (let* ((extend-attr
                               (lambda (face)
                                 (if (facep face)
-                                    (face-attribute face :extend)
+                                    (when (>= emacs-major-version 27)
+                                      (face-attribute face :extend))
                                   (if-let (val (plist-member face :extend))
                                       (cadr val)
                                     'unspecified))))

Reply via email to