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-common.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'chess-common.el') diff --git a/chess-common.el b/chess-common.el index ac48c8e..24f0c14 100644 --- a/chess-common.el +++ b/chess-common.el @@ -1,4 +1,4 @@ -;;; chess-common.el --- Handler functions common to xboard based engine protocols +;;; chess-common.el --- Handler functions common to xboard based engine protocols -*- lexical-binding: t; -*- ;; Copyright (C) 2002, 2004, 2014 Free Software Foundation, Inc. @@ -35,10 +35,8 @@ (require 'chess-engine) (require 'chess-message) -(defvar chess-common-engine-name nil) -(defvar chess-common-temp-files nil) -(make-variable-buffer-local 'chess-common-engine-name) -(make-variable-buffer-local 'chess-common-temp-files) +(defvar-local chess-common-engine-name nil) +(defvar-local chess-common-temp-files nil) (defmacro chess-with-temp-file (&rest body) `(let ((file (make-temp-file "chess"))) -- cgit v1.2.3