From e1d60d2110987f1060c0b37d032621c669d97d5e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 19 Oct 2025 18:49:00 -0500 Subject: 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. --- chess-module.el | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'chess-module.el') 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'"))) -- cgit v1.2.3