diff lisp/play/5x5.el @ 57826:26b411f0feaf

(5x5-new-game): Set up the buffer even if not interactive.
author Richard M. Stallman <rms@gnu.org>
date Mon, 01 Nov 2004 07:46:16 +0000
parents 695cf19ef79e
children eaa9acd9122c e24e2e78deda
line wrap: on
line diff
--- a/lisp/play/5x5.el	Mon Nov 01 07:45:18 2004 +0000
+++ b/lisp/play/5x5.el	Mon Nov 01 07:46:16 2004 +0000
@@ -224,9 +224,8 @@
           5x5-y-pos (/ 5x5-grid-size 2)
           5x5-moves 0
           5x5-grid  (5x5-make-move (5x5-make-new-grid) 5x5-y-pos 5x5-x-pos))
-    (when (interactive-p)
-      (5x5-draw-grid (list 5x5-grid))
-      (5x5-position-cursor))))
+    (5x5-draw-grid (list 5x5-grid))
+    (5x5-position-cursor)))
 
 (defun 5x5-quit-game ()
   "Quit the current game of `5x5'."