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-pos.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'chess-pos.el') diff --git a/chess-pos.el b/chess-pos.el index f68bdac..2a33b7f 100644 --- a/chess-pos.el +++ b/chess-pos.el @@ -1,4 +1,4 @@ -;;; chess-pos.el --- Routines for manipulating chess positions +;;; chess-pos.el --- Routines for manipulating chess positions -*- lexical-binding: t; -*- ;; Copyright (C) 2002, 2004, 2014 Free Software Foundation, Inc. @@ -93,13 +93,11 @@ "Routines for manipulating chess positions." :group 'chess) -(defvar chess-pos-always-white nil +(defvar-local chess-pos-always-white nil "When set, it is assumed that white is always on move. This is really only useful when setting up training positions. This variable automatically becomes buffer-local when changed.") -(make-variable-buffer-local 'chess-pos-always-white) - (defconst chess-starting-position [;; the eight ranks and files of the chess position ?r ?n ?b ?q ?k ?b ?n ?r -- cgit v1.2.3