aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-11-01 07:46:16 +0000
committerRichard M. Stallman2004-11-01 07:46:16 +0000
commitca5f43fa079964246af32562774a6dbd462622a8 (patch)
treee9567528a29843a80a7e605d4a9a011b4e92fc32
parent1d4408c8ebf209bd83bae5745bc273d5d484c745 (diff)
downloademacs-ca5f43fa079964246af32562774a6dbd462622a8.tar.gz
emacs-ca5f43fa079964246af32562774a6dbd462622a8.zip
(5x5-new-game): Set up the buffer even if not interactive.
-rw-r--r--lisp/play/5x5.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/play/5x5.el b/lisp/play/5x5.el
index 886e53a6afa..83d67958f44 100644
--- a/lisp/play/5x5.el
+++ b/lisp/play/5x5.el
@@ -224,9 +224,8 @@ Quit current game \\[5x5-quit-game]"
224 5x5-y-pos (/ 5x5-grid-size 2) 224 5x5-y-pos (/ 5x5-grid-size 2)
225 5x5-moves 0 225 5x5-moves 0
226 5x5-grid (5x5-make-move (5x5-make-new-grid) 5x5-y-pos 5x5-x-pos)) 226 5x5-grid (5x5-make-move (5x5-make-new-grid) 5x5-y-pos 5x5-x-pos))
227 (when (interactive-p) 227 (5x5-draw-grid (list 5x5-grid))
228 (5x5-draw-grid (list 5x5-grid)) 228 (5x5-position-cursor)))
229 (5x5-position-cursor))))
230 229
231(defun 5x5-quit-game () 230(defun 5x5-quit-game ()
232 "Quit the current game of `5x5'." 231 "Quit the current game of `5x5'."