aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-04-07 13:49:14 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2023-04-07 13:49:14 +0200
commit532b92edf52bc526d1789e3706679e204b84149c (patch)
tree85f7c95ac3cda04614fc9474029604b7972af04b
parentded87f826e2320358293e7cc417f3e660359cd90 (diff)
make-separator-line: Use :extend only on Emacs 27 and newer
-rw-r--r--compat-28.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat-28.el b/compat-28.el
index ac205cb..af982d4 100644
--- a/compat-28.el
+++ b/compat-28.el
@@ -221,7 +221,8 @@ and BLUE, is normalized to have its value in [0,65535]."
(compat-defun make-separator-line (&optional length) ;; <compat-tests:make-separator-line>
"Make a string appropriate for usage as a visual separator line.
If LENGTH is nil, use the window width."
- (if (display-graphic-p)
+ ;; :extend is only supported on Emacs 27 and newer
+ (if (and (eval-when-compile (> emacs-major-version 26)) (display-graphic-p))
(propertize "\n" 'face '(:extend t :height 0.1 :inverse-video t))
(concat (make-string (or length (1- (window-width))) ?-) "\n")))