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-file.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'chess-file.el') diff --git a/chess-file.el b/chess-file.el index 1b3028b..d1cb7e7 100644 --- a/chess-file.el +++ b/chess-file.el @@ -1,4 +1,4 @@ -;;; chess-file.el --- Handle chess databases stored in PGN or EPD files +;;; chess-file.el --- Handle chess databases stored in PGN or EPD files -*- lexical-binding: t; -*- ;; Copyright (C) 2002, 2004, 2014 Free Software Foundation, Inc. @@ -29,14 +29,12 @@ (require 'chess-fen) -(defvar chess-file-locations nil +(defvar-local chess-file-locations nil "A list of starting positions of individual records of this collection.") -(make-variable-buffer-local 'chess-file-locations) -(defvar chess-file-type nil +(defvar-local chess-file-type nil "The file format type of this database instance (a symbol). See `chess-file-types' for details.") -(make-variable-buffer-local 'chess-file-type) (defvar chess-file-types `((pgn "^\\[Event " chess-pgn-to-game chess-game-to-pgn (?\n ?\n)) -- cgit v1.2.3