From a71f5db29155d23b3f0672f98d560b368093631c Mon Sep 17 00:00:00 2001 From: Mario Lang Date: Mon, 2 Feb 2004 13:12:49 +0000 Subject: (chess-module-destroy): chess-module-detach-game was called outside of the module buffer with argument nil, which obviously fails. --- chess-module.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chess-module.el') diff --git a/chess-module.el b/chess-module.el index 59f51e6..d623d5b 100644 --- a/chess-module.el +++ b/chess-module.el @@ -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) -- cgit v1.2.3