branch: externals/company commit 28f680ca11a39ba58749147edd0983188b100ea6 Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@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")