]> code.delx.au - gnu-emacs-elpa/commitdiff
(chess-module-destroy): chess-module-detach-game was called outside
authorMario Lang <mlang@delysid.org>
Mon, 2 Feb 2004 13:12:49 +0000 (13:12 +0000)
committerMario Lang <mlang@delysid.org>
Mon, 2 Feb 2004 13:12:49 +0000 (13:12 +0000)
of the module buffer with argument nil, which obviously fails.

chess-module.el

index 59f51e6e2bea88b0b824eac101e4298ba7fcbd96..d623d5b63e3634b192cb4a1dad1eca1465f1fdbc 100644 (file)
@@ -88,8 +88,8 @@
   (let ((buf (or module (current-buffer))))
     (when (buffer-live-p buf)
       (with-current-buffer buf
-       (remove-hook 'kill-buffer-hook 'chess-module-destroy t))
-      (chess-module-detach-game nil)
+       (remove-hook 'kill-buffer-hook 'chess-module-destroy t)
+       (chess-module-detach-game nil))
       (kill-buffer buf))))
 
 (defun chess-module-event-handler (game object event &rest args)