diff options
| author | Thien-Thi Nguyen | 2007-08-24 16:07:07 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2007-08-24 16:07:07 +0000 |
| commit | 5b29d790c96ae6ebde6ed1a5a0ce97d71fb13ca5 (patch) | |
| tree | 6d8dcb2aca77216eee90ecb6a8e7b7f9ab695926 /lisp/play | |
| parent | 9d693d807fbd77761cf1c35de1bcbcfc91d690e4 (diff) | |
| download | emacs-5b29d790c96ae6ebde6ed1a5a0ce97d71fb13ca5.tar.gz emacs-5b29d790c96ae6ebde6ed1a5a0ce97d71fb13ca5.zip | |
(zone-pgm-rat-race): New func.
(zone-programs): Add `zone-pgm-rat-race'.
Diffstat (limited to 'lisp/play')
| -rw-r--r-- | lisp/play/zone.el | 12 |
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.") | |||
| 74 | zone-pgm-drip-fretfully | 74 | zone-pgm-drip-fretfully |
| 75 | zone-pgm-five-oclock-swan-dive | 75 | zone-pgm-five-oclock-swan-dive |
| 76 | zone-pgm-martini-swan-dive | 76 | zone-pgm-martini-swan-dive |
| 77 | zone-pgm-rat-race | ||
| 77 | zone-pgm-paragraph-spaz | 78 | zone-pgm-paragraph-spaz |
| 78 | zone-pgm-stress | 79 | zone-pgm-stress |
| 79 | zone-pgm-stress-destress | 80 | zone-pgm-stress-destress |
| @@ -568,6 +569,17 @@ If the element is a function or a list of a function and a number, | |||
| 568 | (defun zone-pgm-martini-swan-dive () | 569 | (defun zone-pgm-martini-swan-dive () |
| 569 | (zone-pgm-drip t t)) | 570 | (zone-pgm-drip t t)) |
| 570 | 571 | ||
| 572 | (defun zone-pgm-rat-race () | ||
| 573 | (while (not (input-pending-p)) | ||
| 574 | (zone-call '((zone-pgm-rotate 10) | ||
| 575 | (zone-pgm-drip-fretfully 15) | ||
| 576 | (zone-pgm-drip 10) | ||
| 577 | ((lambda () | ||
| 578 | (goto-char (point-min)) | ||
| 579 | (while (re-search-forward " +$" nil t) | ||
| 580 | (delete-region (match-beginning 0) (match-end 0)))) | ||
| 581 | 5))))) | ||
| 582 | |||
| 571 | 583 | ||
| 572 | ;;;; paragraph spazzing (for textish modes) | 584 | ;;;; paragraph spazzing (for textish modes) |
| 573 | 585 | ||