From 3b5fab8756279e0b37020ad1da13cc24b5f0cff5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 1 Aug 2000 06:25:13 +0000 Subject: [PATCH] (ispell-highlight-spelling-error): Use display-color-p, if fboundp, instead of window-system. --- lisp/ChangeLog | 5 +++++ lisp/textmodes/ispell.el | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3d83e93c255..3b06d34e6ef 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2000-08-01 Eli Zaretskii + + * textmodes/ispell.el (ispell-highlight-spelling-error): Use + display-color-p, if fboundp, instead of window-system. + 2000-07-31 Eli Zaretskii * calendar/appt.el (appt-disp-window): Use display-multi-frame-p diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 7a7112aa9d5..b82a2195601 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el @@ -2009,7 +2009,9 @@ The variable `ispell-highlight-face' selects the face to use for highlighting." (xemacsp (ispell-highlight-spelling-error-xemacs start end highlight)) ((and (not version18p) - (featurep 'faces) window-system) + (featurep 'faces) + (or (and (fboundp 'display-color-p) (display-color-p)) + window-system)) (ispell-highlight-spelling-error-overlay start end highlight)) (t (ispell-highlight-spelling-error-generic start end highlight refresh)))) -- 2.39.2