[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
animate-birthday-present
From: |
Masatake YAMATO |
Subject: |
animate-birthday-present |
Date: |
Wed, 18 Feb 2004 15:36:26 +0900 (JST) |
Today I've found the greatest emacs lisp program I have ever seen.
(Till today dired is the best.)
If the maintainer permits, I'd like to use the program for my wife.
If the maintainer doesn't permit because `animate-birthday-present'
is a finished product, I'd like to withdraw the patch.
Masatake YAMATO
2004-02-18 Masatake YAMATO <address@hidden>
* play/animate.el (animate-birthday-present):
Accept other than `Sarah', too.
cvs diff: warning: unrecognized response `access control disabled, clients can
connect from any host' from cvs server
Index: lisp/play/animate.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/play/animate.el,v
retrieving revision 1.9
diff -u -r1.9 animate.el
--- lisp/play/animate.el 1 Sep 2003 15:45:34 -0000 1.9
+++ lisp/play/animate.el 18 Feb 2004 06:26:06 -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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- animate-birthday-present,
Masatake YAMATO <=