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-puzzle.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'chess-puzzle.el') diff --git a/chess-puzzle.el b/chess-puzzle.el index 557a0b1..26b3547 100644 --- a/chess-puzzle.el +++ b/chess-puzzle.el @@ -1,4 +1,4 @@ -;;; chess-puzzle.el --- Support for viewing and solving chess puzzles +;;; chess-puzzle.el --- Support for viewing and solving chess puzzles -*- lexical-binding: t; -*- ;; Copyright (C) 2002, 2004, 2008, 2014 Free Software Foundation, Inc. @@ -63,11 +63,8 @@ it. Useful if you have all of your puzzles in a single file." :type 'boolean :group 'chess-puzzle) -(defvar chess-puzzle-indices nil) -(defvar chess-puzzle-position nil) - -(make-variable-buffer-local 'chess-puzzle-indices) -(make-variable-buffer-local 'chess-puzzle-position) +(defvar-local chess-puzzle-indices nil) +(defvar-local chess-puzzle-position nil) (chess-message-catalog 'english '((bad-game-read . "Error reading game at position %d") @@ -181,7 +178,6 @@ making it easy to go on to the next puzzle once you've solved one." (chess-var-to-algebraic pv)) ""))))))) - (defun chess-puzzle-handler (game display event &rest _args) (if (and (eq event 'move) (chess-game-over-p game)) -- cgit v1.2.3