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-engine.el | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to 'chess-engine.el') diff --git a/chess-engine.el b/chess-engine.el index 2d6068a..02a0857 100644 --- a/chess-engine.el +++ b/chess-engine.el @@ -1,4 +1,4 @@ -;;; chess-engine.el --- Obtain movements and other information from an engine +;;; chess-engine.el --- Obtain movements and other information from an engine -*- lexical-binding: t; -*- ;; Copyright (C) 2014 Free Software Foundation, Inc. @@ -25,28 +25,17 @@ "Code for reading movements and other commands from an engine." :group 'chess) -(defvar chess-engine-regexp-alist nil) -(defvar chess-engine-response-handler nil) -(defvar chess-engine-current-marker nil) -(defvar chess-engine-pending-offer nil) -(defvar chess-engine-pending-arg nil) -(defvar chess-engine-opponent-name nil) - -(make-variable-buffer-local 'chess-engine-regexp-alist) -(make-variable-buffer-local 'chess-engine-response-handler) -(make-variable-buffer-local 'chess-engine-current-marker) -(make-variable-buffer-local 'chess-engine-pending-offer) -(make-variable-buffer-local 'chess-engine-pending-arg) -(make-variable-buffer-local 'chess-engine-opponent-name) - -(defvar chess-engine-process nil) -(defvar chess-engine-last-pos nil) -(defvar chess-engine-working nil) -(defvar chess-engine-handling-event nil) +(defvar-local chess-engine-regexp-alist nil) +(defvar-local chess-engine-response-handler nil) +(defvar-local chess-engine-current-marker nil) +(defvar-local chess-engine-pending-offer nil) +(defvar-local chess-engine-pending-arg nil) +(defvar-local chess-engine-opponent-name nil) -(make-variable-buffer-local 'chess-engine-process) -(make-variable-buffer-local 'chess-engine-last-pos) -(make-variable-buffer-local 'chess-engine-working) +(defvar-local chess-engine-process nil) +(defvar-local chess-engine-last-pos nil) +(defvar-local chess-engine-working nil) +(defvar chess-engine-handling-event nil) (defvar chess-engine-inhibit-auto-pass nil) -- cgit v1.2.3