From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: animate-birthday-present Date: Wed, 18 Feb 2004 15:36:26 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040218.153626.210790020.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1077086259 27230 80.91.224.253 (18 Feb 2004 06:37:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2004 06:37:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Feb 18 07:37:34 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AtLKw-0003Sn-00 for ; Wed, 18 Feb 2004 07:37:34 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AtLKv-0007yD-00 for ; Wed, 18 Feb 2004 07:37:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtLKv-0005Kp-5o for emacs-devel@quimby.gnus.org; Wed, 18 Feb 2004 01:37:33 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AtLKc-00051h-G4 for emacs-devel@gnu.org; Wed, 18 Feb 2004 01:37:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AtLJw-0003hw-5G for emacs-devel@gnu.org; Wed, 18 Feb 2004 01:37:04 -0500 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AtLJu-0003ao-0C; Wed, 18 Feb 2004 01:36:30 -0500 Original-Received: from localhost (nat-pool.jp.redhat.com [219.120.63.249]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id i1I6aQS02743; Wed, 18 Feb 2004 15:36:26 +0900 (JST) Original-To: rms@gnu.org X-Mailer: Mew version 4.0.62 on Emacs 21.3.50 / Mule 5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20039 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20039 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 * 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)