[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company 28f680c 1/3: Guard the use of :extend attribute
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company 28f680c 1/3: Guard the use of :extend attribute with a version check |
Date: |
Fri, 2 Apr 2021 12:57:07 -0400 (EDT) |
branch: externals/company
commit 28f680ca11a39ba58749147edd0983188b100ea6
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Guard the use of :extend attribute with a version check
#1084
---
company.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/company.el b/company.el
index 7f02140..9c4d54e 100644
--- a/company.el
+++ b/company.el
@@ -2914,10 +2914,10 @@ If SHOW-VERSION is non-nil, show the version in the
echo area."
new))
;; XXX: Also see branch 'more-precise-extend'.
- (let* ((nl-face (list
- :extend t
+ (let* ((nl-face `(,@(when (version<= "27" emacs-version)
+ '(:extend t))
:inverse-video nil
- :background (or (company--face-attribute 'default
:background)
+ :background ,(or (company--face-attribute 'default
:background)
(face-attribute 'default :background nil
t))))
(str (apply #'concat
(when nl " \n")