summaryrefslogtreecommitdiff
path: root/lisp/play/zone.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2022-10-18 18:43:50 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2022-10-18 18:43:50 -0400
commit155ddde4dd3f6246814ab76bc2f54f4d571bbd15 (patch)
tree284a73e46d13a1f426fea2655e7bbe601e4b5ca7 /lisp/play/zone.el
parent2cca6408fde59e57a0937e561675d181f7fa226e (diff)
downloademacs-155ddde4dd3f6246814ab76bc2f54f4d571bbd15.tar.gz
(sit-for): Add compiler-macro to warn about obsolete calling convention
* lisp/subr.el (sit-for): Add compiler-macro. * lisp/eshell/esh-util.el (eshell-redisplay): * lisp/play/zone.el (zone, zone-pgm-jitter, zone-pgm-whack-chars): (zone-remove-text): Avoid obsolete calling convention.
Diffstat (limited to 'lisp/play/zone.el')
-rw-r--r--lisp/play/zone.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/play/zone.el b/lisp/play/zone.el
index 5ea5bbc9267..e3a9507f1cc 100644
--- a/lisp/play/zone.el
+++ b/lisp/play/zone.el
@@ -139,7 +139,7 @@ run a specific program. The program must be a member of
(untabify (point-min) (point-max))
(set-window-start (selected-window) (point-min))
(set-window-point (selected-window) wp)
- (sit-for 0 500)
+ (sit-for 0.500)
(let ((ct (and f (frame-parameter f 'cursor-type)))
(show-trailing-whitespace nil)
restore)
@@ -249,7 +249,7 @@ run a specific program. The program must be a member of
(while (not (input-pending-p))
(funcall (elt ops (random (length ops))))
(goto-char (point-min))
- (sit-for 0 10))))
+ (sit-for 0.01))))
;;;; whacking chars
@@ -262,7 +262,7 @@ run a specific program. The program must be a member of
(aset tbl i (+ 48 (random (- 123 48))))
(setq i (1+ i)))
(translate-region (point-min) (point-max) tbl)
- (sit-for 0 2)))))
+ (sit-for 0.002)))))
(put 'zone-pgm-whack-chars 'wc-tbl
(let ((tbl (make-string 128 ?x))
@@ -290,7 +290,7 @@ run a specific program. The program must be a member of
(delete-char 1)
(insert " ")))
(forward-char 1))))
- (sit-for 0 2))))
+ (sit-for 0.002))))
(defun zone-pgm-dissolve ()
(zone-remove-text)