+2004-02-21 Masatake YAMATO <jet@gyve.org>
+
+ * play/animate.el (animate-birthday-present): Accept names other
+ than `Sarah', too.
+
2004-02-21 Juri Linkov <juri@jurta.org>
* startup.el: Remove table of command line arguments from the
(setq list-of-strings (cdr list-of-strings)))))
;;;###autoload
-(defun animate-birthday-present ()
- "Display Sarah's birthday present in a new buffer."
- (interactive)
+(defun animate-birthday-present (&optional name)
+ "Display one's birthday present in a new buffer.
+You can specify the one's name by NAME; the default value is \"Sarah\"."
+ (interactive (list (read-string "Name (default \"Sarah\"): "
+ nil nil "Sarah")))
;; Make a suitable buffer to display the birthday present in.
- (switch-to-buffer (get-buffer-create "*Sarah*"))
+ (switch-to-buffer (get-buffer-create (format "*%s*" name)))
(erase-buffer)
;; Display the empty buffer.
(sit-for 0)
(setq indent-tabs-mode nil)
(animate-string "Happy Birthday," 6)
- (animate-string "Sarah" 7)
+ (animate-string (format "%s" name) 7)
(sit-for 1)