# HG changeset patch # User Eli Zaretskii # Date 965391399 0 # Node ID fbdf4c1e1acff5694b703c1a83fdc2fa4a9f90ec # Parent 6667ca2d422d62d96abbdb309031d03f39187a1e (zone, zone-pgm-stress): Don't use window-system. diff -r 6667ca2d422d -r fbdf4c1e1acf lisp/play/zone.el --- 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))))