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-crafty.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'chess-crafty.el') diff --git a/chess-crafty.el b/chess-crafty.el index d69a5ea..86e410e 100644 --- a/chess-crafty.el +++ b/chess-crafty.el @@ -1,4 +1,4 @@ -;;; chess-crafty.el --- Play against crafty! +;;; chess-crafty.el --- Play against crafty! -*- lexical-binding: t; -*- ;; Copyright (C) 2002, 2004, 2014 Free Software Foundation, Inc. @@ -40,15 +40,11 @@ :type 'string :group 'chess-crafty) -(defvar chess-crafty-evaluation nil) +(defvar-local chess-crafty-evaluation nil) -(make-variable-buffer-local 'chess-crafty-evaluation) - -(defvar chess-crafty-analyzing-p nil +(defvar-local chess-crafty-analyzing-p nil "Non-nil if Crafty is currently in analysis mode.") -(make-variable-buffer-local 'chess-crafty-analyzing-p) - (defvar chess-crafty-regexp-alist (list (cons (concat "move\\s-+\\(" chess-algebraic-regexp "\\)\\s-*$") -- cgit v1.2.3