# HG changeset patch # User Eli Zaretskii # Date 1077370083 0 # Node ID d0b60a16426459c886597933a54008874fe6a031 # Parent e1a843eba96a33b19adecb2c4b0b8ff36db4110a (animate-birthday-present): Accept other than `Sarah', too. diff -r e1a843eba96a -r d0b60a164264 lisp/play/animate.el --- a/lisp/play/animate.el Sat Feb 21 13:24:15 2004 +0000 +++ b/lisp/play/animate.el Sat Feb 21 13:28:03 2004 +0000 @@ -151,11 +151,13 @@ (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) @@ -164,7 +166,7 @@ (setq indent-tabs-mode nil) (animate-string "Happy Birthday," 6) - (animate-string "Sarah" 7) + (animate-string (format "%s" name) 7) (sit-for 1)