summaryrefslogtreecommitdiff
path: root/lisp/play/zone.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-08-04 12:21:12 +0000
committerEli Zaretskii <eliz@gnu.org>2000-08-04 12:21:12 +0000
commit2e78d4abe072b9683bb51ef162521da61a174902 (patch)
treef9cb8605fb475abcd634ef76f06e473092601d69 /lisp/play/zone.el
parent85628348e5d4b2a93dc27182d219bb3c2cdf2248 (diff)
downloademacs-2e78d4abe072b9683bb51ef162521da61a174902.tar.gz
(zone, zone-pgm-stress): Don't use window-system.
Diffstat (limited to 'lisp/play/zone.el')
-rw-r--r--lisp/play/zone.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/play/zone.el b/lisp/play/zone.el
index 9ecdaa44acb..6f2340d0485 100644
--- a/lisp/play/zone.el
+++ b/lisp/play/zone.el
@@ -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 @@ If t, zone won't zone out.")
(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 @@ If t, zone won't zone out.")
(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))))