]> git.eshelyaron.com Git - emacs.git/commitdiff
(5x5-new-game): Set up the buffer even if not interactive.
authorRichard M. Stallman <rms@gnu.org>
Mon, 1 Nov 2004 07:46:16 +0000 (07:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 1 Nov 2004 07:46:16 +0000 (07:46 +0000)
lisp/play/5x5.el

index 886e53a6afa5ad761bd1bfbe95abde74d60cd928..83d67958f4482bc1766bf503f09616e5e3b6f46a 100644 (file)
@@ -224,9 +224,8 @@ Quit current game         \\[5x5-quit-game]"
           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'."