summaryrefslogtreecommitdiff
path: root/lisp/play/zone.el
diff options
context:
space:
mode:
authorThien-Thi Nguyen <ttn@gnuvola.org>2007-08-24 16:07:07 +0000
committerThien-Thi Nguyen <ttn@gnuvola.org>2007-08-24 16:07:07 +0000
commit5b29d790c96ae6ebde6ed1a5a0ce97d71fb13ca5 (patch)
tree6d8dcb2aca77216eee90ecb6a8e7b7f9ab695926 /lisp/play/zone.el
parent9d693d807fbd77761cf1c35de1bcbcfc91d690e4 (diff)
downloademacs-5b29d790c96ae6ebde6ed1a5a0ce97d71fb13ca5.tar.gz
emacs-5b29d790c96ae6ebde6ed1a5a0ce97d71fb13ca5.tar.bz2
emacs-5b29d790c96ae6ebde6ed1a5a0ce97d71fb13ca5.zip
(zone-pgm-rat-race): New func.
(zone-programs): Add `zone-pgm-rat-race'.
Diffstat (limited to 'lisp/play/zone.el')
-rw-r--r--lisp/play/zone.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/play/zone.el b/lisp/play/zone.el
index 71ae01d23d9..f1bbfb19938 100644
--- a/lisp/play/zone.el
+++ b/lisp/play/zone.el
@@ -74,6 +74,7 @@ If nil, don't interrupt for about 1^26 seconds.")
zone-pgm-drip-fretfully
zone-pgm-five-oclock-swan-dive
zone-pgm-martini-swan-dive
+ zone-pgm-rat-race
zone-pgm-paragraph-spaz
zone-pgm-stress
zone-pgm-stress-destress
@@ -568,6 +569,17 @@ If the element is a function or a list of a function and a number,
(defun zone-pgm-martini-swan-dive ()
(zone-pgm-drip t t))
+(defun zone-pgm-rat-race ()
+ (while (not (input-pending-p))
+ (zone-call '((zone-pgm-rotate 10)
+ (zone-pgm-drip-fretfully 15)
+ (zone-pgm-drip 10)
+ ((lambda ()
+ (goto-char (point-min))
+ (while (re-search-forward " +$" nil t)
+ (delete-region (match-beginning 0) (match-end 0))))
+ 5)))))
+
;;;; paragraph spazzing (for textish modes)