1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00

(5x5-new-game): Set up the buffer even if not interactive.

This commit is contained in:
Richard M. Stallman 2004-11-01 07:46:16 +00:00
parent 1d4408c8eb
commit ca5f43fa07

View File

@ -224,9 +224,8 @@ Quit current game \\[5x5-quit-game]"
5x5-y-pos (/ 5x5-grid-size 2) 5x5-y-pos (/ 5x5-grid-size 2)
5x5-moves 0 5x5-moves 0
5x5-grid (5x5-make-move (5x5-make-new-grid) 5x5-y-pos 5x5-x-pos)) 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-draw-grid (list 5x5-grid)) (5x5-position-cursor)))
(5x5-position-cursor))))
(defun 5x5-quit-game () (defun 5x5-quit-game ()
"Quit the current game of `5x5'." "Quit the current game of `5x5'."