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-clock.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'chess-clock.el') diff --git a/chess-clock.el b/chess-clock.el index c7b4d95..7ba2efe 100644 --- a/chess-clock.el +++ b/chess-clock.el @@ -1,4 +1,4 @@ -;;; chess-clock.el --- Implements a chess clock +;;; chess-clock.el --- Implements a chess clock -*- lexical-binding: t; -*- ;; Copyright (C) 2002, 2004, 2014 Free Software Foundation, Inc. @@ -24,11 +24,8 @@ (require 'chess-game) (require 'chess-module) -(defvar chess-clock-last-time nil) -(defvar chess-clock-timer nil) - -(make-variable-buffer-local 'chess-clock-last-time) -(make-variable-buffer-local 'chess-clock-timer) +(defvar-local chess-clock-last-time nil) +(defvar-local chess-clock-timer nil) (defsubst chess-clock-add-seconds (time seconds) "To TIME, add SECONDS. Return result as a time value." -- cgit v1.2.3