changeset 32801:e58bc9a59da7

(face-spec-set-match-display): Add `graphic' display type (the inverse of `tty'). Use `display-graphic-p' instead of the window-system variable.
author Miles Bader <miles@gnu.org>
date Tue, 24 Oct 2000 06:16:20 +0000
parents 09e092438107
children 66f219c7e8ca
files lisp/faces.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/faces.el	Tue Oct 24 04:39:01 2000 +0000
+++ b/lisp/faces.el	Tue Oct 24 06:16:20 2000 +0000
@@ -1129,8 +1129,9 @@
 	    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)