diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-04-07 13:49:14 +0200 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-04-07 13:49:14 +0200 |
| commit | 532b92edf52bc526d1789e3706679e204b84149c (patch) | |
| tree | 85f7c95ac3cda04614fc9474029604b7972af04b | |
| parent | ded87f826e2320358293e7cc417f3e660359cd90 (diff) | |
make-separator-line: Use :extend only on Emacs 27 and newer
| -rw-r--r-- | compat-28.el | 3 |
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"))) |
