summaryrefslogtreecommitdiff
path: root/chess-pgn.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-pgn.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-pgn.el')
-rw-r--r--chess-pgn.el15
1 files changed, 5 insertions, 10 deletions
diff --git a/chess-pgn.el b/chess-pgn.el
index 14cec7a..9fe1509 100644
--- a/chess-pgn.el
+++ b/chess-pgn.el
@@ -1,4 +1,4 @@
-;;; chess-pgn.el --- Convert a chess game to/from Portable Game Notation (PGN)
+;;; chess-pgn.el --- Convert a chess game to/from Portable Game Notation (PGN) -*- lexical-binding: t; -*-
;; Copyright (C) 2002, 2004, 2008, 2014 Free Software Foundation, Inc.
@@ -256,19 +256,14 @@ PGN text."
(require 'chess-database)
(require 'chess-file)
-(defvar chess-pgn-database nil
+(defvar-local chess-pgn-database nil
"Chess database object.")
-(make-variable-buffer-local 'chess-pgn-database)
-(defvar chess-pgn-display nil
+(defvar-local chess-pgn-display nil
"If non-nil, the chess display object used for this buffer.")
-(make-variable-buffer-local 'chess-pgn-display)
-(defvar chess-pgn-current-game)
-(defvar chess-pgn-current-index)
-
-(make-variable-buffer-local 'chess-pgn-current-game)
-(make-variable-buffer-local 'chess-pgn-current-index)
+(defvar-local chess-pgn-current-game nil)
+(defvar-local chess-pgn-current-index nil)
(chess-message-catalog 'english
'((could-not-read-pgn . "Could not read or find a PGN game")))