summaryrefslogtreecommitdiff
path: root/chess-module.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-19 18:49:00 -0500
committerCraig Jennings <c@cjennings.net>2025-10-19 18:49:00 -0500
commite1d60d2110987f1060c0b37d032621c669d97d5e (patch)
tree2ff171a86f28593da724bb754d80278e74cf8f5d /chess-module.el
parent865b2ab11469f3bd1bc4d7b3669cb4626c37be08 (diff)
fix: all: fixes to get emacs-chess working on 30.2
- added lexical-binding headers to all source files - replaced make-variable-buffer-local with defvar-local throughout source code - replaced deprecated cl library with cl-lib, including replacing assert with cl-assert to emacs-chess-steps.el - added proper headers and footers to test files when missing - populated chess images and chess sounds directory - fixed defcustom calling directory-files without error handling. xboard installation no longer required.
Diffstat (limited to 'chess-module.el')
-rw-r--r--chess-module.el12
1 files changed, 4 insertions, 8 deletions
diff --git a/chess-module.el b/chess-module.el
index cfcae66..282777e 100644
--- a/chess-module.el
+++ b/chess-module.el
@@ -1,4 +1,4 @@
-;;; chess-module.el --- Basic module support code underlying all chess.el modules
+;;; chess-module.el --- Basic module support code underlying all chess.el modules -*- lexical-binding: t; -*-
;; Copyright (C) 2002, 2004, 2008, 2014 Free Software Foundation, Inc.
@@ -24,13 +24,9 @@
(require 'chess-game)
-(defvar chess-module-game nil)
-(defvar chess-module-event-handler nil)
-(defvar chess-module-leader nil)
-
-(make-variable-buffer-local 'chess-module-game)
-(make-variable-buffer-local 'chess-module-event-handler)
-(make-variable-buffer-local 'chess-module-leader)
+(defvar-local chess-module-game nil)
+(defvar-local chess-module-event-handler nil)
+(defvar-local chess-module-leader nil)
(chess-message-catalog 'english
'((no-such-module . "There is no module named '%s'")))