diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-04-18 18:30:19 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-04-18 18:30:19 +0000 |
| commit | 563cf2037068f67f6786172b029363aaa7d52776 (patch) | |
| tree | 549c69928ccc019093fed062f6999462fbb431db /chess-module.el | |
| parent | 2b0db13d4cdc3aaadd7dd458c1097c668577a072 (diff) | |
Many efficiency improvements and bug fixes.
Diffstat (limited to 'chess-module.el')
| -rw-r--r-- | chess-module.el | 6 |
1 files changed, 3 insertions, 3 deletions
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))) |
