diff options
| author | Eli Zaretskii | 2004-02-21 13:30:42 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2004-02-21 13:30:42 +0000 |
| commit | 8bcfd13b545f05f64ad00cbabfb8bdd1d1dd9b94 (patch) | |
| tree | e1ec4ddd9cb63a68cf4210957b69ef0247540ff9 /lisp/play | |
| parent | bb0b59bf75988245562281f37ab66089641098f2 (diff) | |
| download | emacs-8bcfd13b545f05f64ad00cbabfb8bdd1d1dd9b94.tar.gz emacs-8bcfd13b545f05f64ad00cbabfb8bdd1d1dd9b94.zip | |
(animate-birthday-present): Accept other than `Sarah', too.
Diffstat (limited to 'lisp/play')
| -rw-r--r-- | lisp/play/animate.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/play/animate.el b/lisp/play/animate.el index 40c4696dc08..23e7939f47a 100644 --- a/lisp/play/animate.el +++ b/lisp/play/animate.el | |||
| @@ -151,11 +151,13 @@ Strings will be separated from each other by SPACE lines." | |||
| 151 | (setq list-of-strings (cdr list-of-strings))))) | 151 | (setq list-of-strings (cdr list-of-strings))))) |
| 152 | 152 | ||
| 153 | ;;;###autoload | 153 | ;;;###autoload |
| 154 | (defun animate-birthday-present () | 154 | (defun animate-birthday-present (&optional name) |
| 155 | "Display Sarah's birthday present in a new buffer." | 155 | "Display one's birthday present in a new buffer. |
| 156 | (interactive) | 156 | You can specify the one's name by NAME; the default value is \"Sarah\"." |
| 157 | (interactive (list (read-string "Name (default \"Sarah\"): " | ||
| 158 | nil nil "Sarah"))) | ||
| 157 | ;; Make a suitable buffer to display the birthday present in. | 159 | ;; Make a suitable buffer to display the birthday present in. |
| 158 | (switch-to-buffer (get-buffer-create "*Sarah*")) | 160 | (switch-to-buffer (get-buffer-create (format "*%s*" name))) |
| 159 | (erase-buffer) | 161 | (erase-buffer) |
| 160 | ;; Display the empty buffer. | 162 | ;; Display the empty buffer. |
| 161 | (sit-for 0) | 163 | (sit-for 0) |
| @@ -164,7 +166,7 @@ Strings will be separated from each other by SPACE lines." | |||
| 164 | (setq indent-tabs-mode nil) | 166 | (setq indent-tabs-mode nil) |
| 165 | 167 | ||
| 166 | (animate-string "Happy Birthday," 6) | 168 | (animate-string "Happy Birthday," 6) |
| 167 | (animate-string "Sarah" 7) | 169 | (animate-string (format "%s" name) 7) |
| 168 | 170 | ||
| 169 | (sit-for 1) | 171 | (sit-for 1) |
| 170 | 172 | ||