changeset 30592:fbdf4c1e1acf

(zone, zone-pgm-stress): Don't use window-system.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 04 Aug 2000 12:16:39 +0000
parents 6667ca2d422d
children 827de4a90351
files lisp/play/zone.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/play/zone.el	Fri Aug 04 11:45:03 2000 +0000
+++ b/lisp/play/zone.el	Fri Aug 04 12:16:39 2000 +0000
@@ -84,7 +84,7 @@
   (interactive)
   (and (timerp zone-timer) (cancel-timer zone-timer))
   (setq zone-timer nil)
-  (let ((f (and window-system (selected-frame)))
+  (let ((f (selected-frame))
         (outbuf (get-buffer-create "*zone*"))
 	(text (buffer-substring (window-start) (window-end)))
 	(wp (1+ (- (window-point (selected-window))
@@ -530,7 +530,7 @@
         (forward-line 1)
         (setq lines (cons (buffer-substring p (point)) lines))))
     (sit-for 5)
-    (when window-system
+    (when (display-color-p)
       (setq bg (frame-parameter (selected-frame) 'background-color)
             m-fg (face-foreground 'modeline)
             m-bg (face-background 'modeline))
@@ -550,7 +550,7 @@
         (insert (nth (random (length lines)) lines)))
       (message (concat (make-string (random (- (frame-width) 5)) ? ) "grrr"))
       (sit-for 0.1))
-    (when window-system
+    (when (display-color-p)
       (set-face-foreground 'modeline m-fg)
       (set-face-background 'modeline m-bg))))