From c698842f20a69fdc4d0430b7501686a8341023a6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 24 Oct 2000 06:16:20 +0000 Subject: [PATCH] (face-spec-set-match-display): Add `graphic' display type (the inverse of `tty'). Use `display-graphic-p' instead of the window-system variable. --- lisp/faces.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/faces.el b/lisp/faces.el index e886633d324..8252d273f85 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -1129,8 +1129,9 @@ If FRAME is nil, the current FRAME is used." options (cdr conjunct) match (cond ((eq req 'type) (or (memq window-system options) - (and (null window-system) - (memq 'tty options)) + (if (display-graphic-p frame) + (memq 'graphic options) + (memq 'tty options)) (and (memq 'motif options) (featurep 'motif)) (and (memq 'lucid options) -- 2.39.2