diff options
| author | Eli Zaretskii | 2000-08-04 12:21:12 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2000-08-04 12:21:12 +0000 |
| commit | 2e78d4abe072b9683bb51ef162521da61a174902 (patch) | |
| tree | f9cb8605fb475abcd634ef76f06e473092601d69 | |
| parent | 85628348e5d4b2a93dc27182d219bb3c2cdf2248 (diff) | |
| download | emacs-2e78d4abe072b9683bb51ef162521da61a174902.tar.gz emacs-2e78d4abe072b9683bb51ef162521da61a174902.zip | |
(zone, zone-pgm-stress): Don't use window-system.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/play/zone.el | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cf2444094b6..504f1477670 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2000-08-04 Eli Zaretskii <eliz@is.elta.co.il> | 1 | 2000-08-04 Eli Zaretskii <eliz@is.elta.co.il> |
| 2 | 2 | ||
| 3 | * play/zone.el (zone, zone-pgm-stress): Don't use window-system. | ||
| 4 | |||
| 3 | * hi-lock.el (hi-lock-unface-buffer): If a menu of regexps is | 5 | * hi-lock.el (hi-lock-unface-buffer): If a menu of regexps is |
| 4 | popped up, but the user clicks outside the menu, return an empty | 6 | popped up, but the user clicks outside the menu, return an empty |
| 5 | regexp (that causes unhighlight-regexp to have no effect). | 7 | regexp (that causes unhighlight-regexp to have no effect). |
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 @@ | |||
| 84 | (interactive) | 84 | (interactive) |
| 85 | (and (timerp zone-timer) (cancel-timer zone-timer)) | 85 | (and (timerp zone-timer) (cancel-timer zone-timer)) |
| 86 | (setq zone-timer nil) | 86 | (setq zone-timer nil) |
| 87 | (let ((f (and window-system (selected-frame))) | 87 | (let ((f (selected-frame)) |
| 88 | (outbuf (get-buffer-create "*zone*")) | 88 | (outbuf (get-buffer-create "*zone*")) |
| 89 | (text (buffer-substring (window-start) (window-end))) | 89 | (text (buffer-substring (window-start) (window-end))) |
| 90 | (wp (1+ (- (window-point (selected-window)) | 90 | (wp (1+ (- (window-point (selected-window)) |
| @@ -530,7 +530,7 @@ If t, zone won't zone out.") | |||
| 530 | (forward-line 1) | 530 | (forward-line 1) |
| 531 | (setq lines (cons (buffer-substring p (point)) lines)))) | 531 | (setq lines (cons (buffer-substring p (point)) lines)))) |
| 532 | (sit-for 5) | 532 | (sit-for 5) |
| 533 | (when window-system | 533 | (when (display-color-p) |
| 534 | (setq bg (frame-parameter (selected-frame) 'background-color) | 534 | (setq bg (frame-parameter (selected-frame) 'background-color) |
| 535 | m-fg (face-foreground 'modeline) | 535 | m-fg (face-foreground 'modeline) |
| 536 | m-bg (face-background 'modeline)) | 536 | m-bg (face-background 'modeline)) |
| @@ -550,7 +550,7 @@ If t, zone won't zone out.") | |||
| 550 | (insert (nth (random (length lines)) lines))) | 550 | (insert (nth (random (length lines)) lines))) |
| 551 | (message (concat (make-string (random (- (frame-width) 5)) ? ) "grrr")) | 551 | (message (concat (make-string (random (- (frame-width) 5)) ? ) "grrr")) |
| 552 | (sit-for 0.1)) | 552 | (sit-for 0.1)) |
| 553 | (when window-system | 553 | (when (display-color-p) |
| 554 | (set-face-foreground 'modeline m-fg) | 554 | (set-face-foreground 'modeline m-fg) |
| 555 | (set-face-background 'modeline m-bg)))) | 555 | (set-face-background 'modeline m-bg)))) |
| 556 | 556 | ||