summaryrefslogtreecommitdiff
path: root/chess-network.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-19 18:49:00 -0500
committerCraig Jennings <c@cjennings.net>2025-10-19 18:49:00 -0500
commite1d60d2110987f1060c0b37d032621c669d97d5e (patch)
tree2ff171a86f28593da724bb754d80278e74cf8f5d /chess-network.el
parent865b2ab11469f3bd1bc4d7b3669cb4626c37be08 (diff)
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.
Diffstat (limited to 'chess-network.el')
-rw-r--r--chess-network.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/chess-network.el b/chess-network.el
index 493198b..b8ab54b 100644
--- a/chess-network.el
+++ b/chess-network.el
@@ -1,4 +1,4 @@
-;;; chess-network.el --- Play against an opponent over the network
+;;; chess-network.el --- Play against an opponent over the network -*- lexical-binding: t; -*-
;; Copyright (C) 2002, 2003, 2008 Free Software Foundation, Inc.
@@ -123,8 +123,7 @@
(setq str (replace-match "\n" t t str)))
str)
-(defvar chess-network-kind)
-(make-variable-buffer-local 'chess-network-kind)
+(defvar-local chess-network-kind nil)
(defun chess-network-handler (game event &rest args)
"Initialize the network chess engine."