# HG changeset patch # User Thien-Thi Nguyen # Date 1187971560 0 # Node ID ee04117a2f17809f025aee1351270c53337f4a29 # Parent 4d04d9500eaf165436851735ba0ef5a948980cf4 (zone-pgm-rat-race): New func. (zone-programs): Add `zone-pgm-rat-race'. diff -r 4d04d9500eaf -r ee04117a2f17 lisp/play/zone.el --- a/lisp/play/zone.el Fri Aug 24 14:39:25 2007 +0000 +++ b/lisp/play/zone.el Fri Aug 24 16:06:00 2007 +0000 @@ -74,6 +74,7 @@ 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 @@ (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)