aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/play/zone.el28
2 files changed, 8 insertions, 24 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 53b8b68888b..8b6d2f32288 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12007-09-30 Richard Stallman <rms@gnu.org>
2
3 * play/zone.el (zone-hiding-modeline): Use mode-line-format.
4
12007-09-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 52007-09-29 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 6
3 * term/x-win.el (x-gtk-stock-map): Version is 22.2. 7 * term/x-win.el (x-gtk-stock-map): Version is 22.2.
diff --git a/lisp/play/zone.el b/lisp/play/zone.el
index 15d8e5eeba7..c146f4baa83 100644
--- a/lisp/play/zone.el
+++ b/lisp/play/zone.el
@@ -86,30 +86,10 @@ If nil, don't interrupt for about 1^26 seconds.")
86 ,@body)) 86 ,@body))
87 87
88(defmacro zone-hiding-modeline (&rest body) 88(defmacro zone-hiding-modeline (&rest body)
89 `(let (bg mode-line-fg mode-line-bg mode-line-box) 89 ;; This formerly worked by temporarily altering face `mode-line',
90 (unwind-protect 90 ;; which did not even work right, it seems.
91 (progn 91 `(let (mode-line-format)
92 (when (and (= 0 (get 'zone 'modeline-hidden-level)) 92 ,@body))
93 (display-color-p))
94 (setq bg (face-background 'default)
95 mode-line-box (face-attribute 'mode-line :box)
96 mode-line-fg (face-attribute 'mode-line :foreground)
97 mode-line-bg (face-attribute 'mode-line :background))
98 (set-face-attribute 'mode-line nil
99 :foreground bg
100 :background bg
101 :box nil))
102 (put 'zone 'modeline-hidden-level
103 (1+ (get 'zone 'modeline-hidden-level)))
104 ,@body)
105 (put 'zone 'modeline-hidden-level
106 (1- (get 'zone 'modeline-hidden-level)))
107 (when (and (> 1 (get 'zone 'modeline-hidden-level))
108 mode-line-fg)
109 (set-face-attribute 'mode-line nil
110 :foreground mode-line-fg
111 :background mode-line-bg
112 :box mode-line-box)))))
113 93
114(defun zone-call (program &optional timeout) 94(defun zone-call (program &optional timeout)
115 "Call PROGRAM in a zoned way. 95 "Call PROGRAM in a zoned way.