From: Masatake YAMATO <jet@gyve.org>
Cc: emacs-devel@gnu.org
Subject: animate-birthday-present
Date: Wed, 18 Feb 2004 15:36:26 +0900 (JST) [thread overview]
Message-ID: <20040218.153626.210790020.jet@gyve.org> (raw)
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)
reply other threads:[~2004-02-18 6:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040218.153626.210790020.jet@gyve.org \
--to=jet@gyve.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.