From db5b94f367aebaeb019b46b2e2feb9f366d5d964 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 14 Apr 2002 23:07:06 +0000 Subject: *** no comment *** --- chess-display.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chess-display.el') diff --git a/chess-display.el b/chess-display.el index 432f959..768ed72 100644 --- a/chess-display.el +++ b/chess-display.el @@ -81,7 +81,8 @@ makes moves, or any other changes to the underlying game." (with-current-buffer (generate-new-buffer "*Chessboard*") (setq buffer (current-buffer)) (chess-display-mode read-only) - (when (setq buffer (funcall handler 'initialize)) + (if (null (setq buffer (funcall handler 'initialize))) + (kill-buffer buffer) (add-hook 'kill-buffer-hook 'chess-display-quit nil t) (setq chess-display-style style chess-display-perspective perspective @@ -221,7 +222,7 @@ modeline." (defun chess-display-set-index (display index) (chess-with-current-buffer display (chess-display-set-index* nil index) - (chess-display-update nil))) + (chess-display-update nil t))) (defsubst chess-display-index (display) (chess-with-current-buffer display -- cgit v1.2.3