aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-01-20 02:48:45 +0000
committerChong Yidong2007-01-20 02:48:45 +0000
commit1dfdb0c0b3ef3041f9f114be12770d844684036f (patch)
treed8e581515226d44b05b543fc6a362bf43899ee60
parentfd4b0ac80b0c446ddc8e114310b40a5b8358436d (diff)
downloademacs-1dfdb0c0b3ef3041f9f114be12770d844684036f.tar.gz
emacs-1dfdb0c0b3ef3041f9f114be12770d844684036f.zip
(type-break-demo-hanoi, type-break-demo-life)
(type-break-demo-boring): Call read-event instead of read-char.
-rw-r--r--lisp/type-break.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/type-break.el b/lisp/type-break.el
index ae18d2eeba4..6918c7eafed 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -1131,11 +1131,10 @@ With optional non-nil ALL, force redisplay of all mode-lines."
1131 (progn 1131 (progn
1132 (hanoi (/ (window-width) 8)) 1132 (hanoi (/ (window-width) 8))
1133 ;; Wait for user to come back. 1133 ;; Wait for user to come back.
1134 (read-char) 1134 (read-event)
1135 (kill-buffer "*Hanoi*")) 1135 (kill-buffer "*Hanoi*"))
1136 (quit 1136 (quit
1137 ;; eat char 1137 (read-event)
1138 (read-char)
1139 (and (get-buffer "*Hanoi*") 1138 (and (get-buffer "*Hanoi*")
1140 (kill-buffer "*Hanoi*"))))) 1139 (kill-buffer "*Hanoi*")))))
1141 1140
@@ -1153,11 +1152,10 @@ With optional non-nil ALL, force redisplay of all mode-lines."
1153 (progn 1152 (progn
1154 (life 3) 1153 (life 3)
1155 ;; wait for user to return 1154 ;; wait for user to return
1156 (read-char) 1155 (read-event)
1157 (kill-buffer "*Life*")) 1156 (kill-buffer "*Life*"))
1158 (life-extinct 1157 (life-extinct
1159 (message "%s" (get 'life-extinct 'error-message)) 1158 (message "%s" (get 'life-extinct 'error-message))
1160 (sit-for 3)
1161 ;; restart demo 1159 ;; restart demo
1162 (setq continue t)) 1160 (setq continue t))
1163 (quit 1161 (quit
@@ -1246,7 +1244,7 @@ With optional non-nil ALL, force redisplay of all mode-lines."
1246 message)))) 1244 message))))
1247 (goto-char (point-min)) 1245 (goto-char (point-min))
1248 (sit-for 60)) 1246 (sit-for 60))
1249 (read-char) 1247 (read-event)
1250 (kill-buffer buffer-name)) 1248 (kill-buffer buffer-name))
1251 (quit 1249 (quit
1252 (and (get-buffer buffer-name) 1250 (and (get-buffer buffer-name)