all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* animate-birthday-present
@ 2004-02-18  6:36 Masatake YAMATO
  0 siblings, 0 replies; only message in thread
From: Masatake YAMATO @ 2004-02-18  6:36 UTC (permalink / raw)
  Cc: emacs-devel

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  <jet@gyve.org>

	* 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-18  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18  6:36 animate-birthday-present Masatake YAMATO

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.