From 563cf2037068f67f6786172b029363aaa7d52776 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 18 Apr 2002 18:30:19 +0000 Subject: Many efficiency improvements and bug fixes. --- chess-module.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chess-module.el') diff --git a/chess-module.el b/chess-module.el index 9494af9..59f51e6 100644 --- a/chess-module.el +++ b/chess-module.el @@ -26,9 +26,9 @@ (defun chess-module-create (derived game &optional buffer-name &rest ctor-args) (let* ((name (symbol-name derived)) - (handler (intern-soft (concat name "-handler"))) - buffer) - (unless handler + handler buffer) + (unless (and (require derived nil t) + (setq handler (intern-soft (concat name "-handler")))) (chess-error 'no-such-module name)) (with-current-buffer (generate-new-buffer (or buffer-name (format " *%s*" name))) -- cgit v1.2.3