comparison lisp/play/animate.el @ 38702:dc644b0090f2

(animate-birthday-present): Re-insert.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 06 Aug 2001 12:40:52 +0000
parents 6b570d0e1cf3
children 456acc0ad1ee
comparison
equal deleted inserted replaced
38701:fc81ac1c9e64 38702:dc644b0090f2
128 (sit-for 0) 128 (sit-for 0)
129 ;; This is so that the undo command, used afterwards, 129 ;; This is so that the undo command, used afterwards,
130 ;; will undo the "animate" calls one by one. 130 ;; will undo the "animate" calls one by one.
131 (undo-boundary))) 131 (undo-boundary)))
132 132
133 ;;;###autoload
134 (defun animate-birthday-present ()
135 "Display Sarah's birthday present."
136 (interactive)
137 ;; Make a suitable buffer to display the birthday present in.
138 (switch-to-buffer (get-buffer-create "Sarah"))
139 (erase-buffer)
140 ;; Display the empty buffer.
141 (sit-for 0)
142 ;; Make sure indentation does not use tabs.
143 ;; They would confuse things.
144 (setq indent-tabs-mode nil)
145
146 (animate-string "Happy Birthday," 6)
147 (animate-string "Sarah" 7)
148
149 (sit-for 1)
150
151 (animate-string "You are my sunshine," 10 30)
152 (sit-for .5)
153 (animate-string "My only sunshine." 11 30)
154 (sit-for .5)
155 (animate-string "I'm awful sad that" 12 30)
156 (sit-for .5)
157 (animate-string "You've moved away." 13 30)
158 (sit-for .5)
159 (animate-string "Let's talk together" 15 30)
160 (sit-for .5)
161 (animate-string "And love more deeply." 16 30)
162 (sit-for .5)
163 (animate-string "Please bring back" 17 30)
164 (animate-string "my sunshine" 18 34)
165 (animate-string "to stay!" 19 34))
166
133 ;;; animate.el ends here 167 ;;; animate.el ends here
168