2001-03-12 Gerd Moellmann <gerd@gnu.org>
+ * play/life.el (life): Rearrange code so that all calls to
+ life-display-generation are in a catch-form.
+
* progmodes/etags.el (tags-loop-continue): Don't change point in a
file that isn't interesting. In an interesting file, push the old
value of point on the mark ring.
;;; life.el --- John Horton Conway's `Life' game for GNU Emacs
-;; Copyright (C) 1988 Free Software Foundation, Inc.
+;; Copyright (C) 1988, 2001 Free Software Foundation, Inc.
;; Author: Kyle Jones <kyleuunet.uu.net>
;; Keywords: games
(setq life-initialized t)
(or sleeptime (setq sleeptime 1))
(life-setup)
- (life-display-generation sleeptime)
(catch 'life-exit
(while t
(let ((inhibit-quit t))
+ (life-display-generation sleeptime)
(life-grim-reaper)
(life-expand-plane-if-needed)
- (life-increment-generation)
- (life-display-generation sleeptime)))))
+ (life-increment-generation)))))
(defalias 'life-mode 'life)
(put 'life-mode 'mode-class 'special)