diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-19 18:49:00 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-19 18:49:00 -0500 |
| commit | e1d60d2110987f1060c0b37d032621c669d97d5e (patch) | |
| tree | 2ff171a86f28593da724bb754d80278e74cf8f5d /chess-input.el | |
| parent | 865b2ab11469f3bd1bc4d7b3669cb4626c37be08 (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-input.el')
| -rw-r--r-- | chess-input.el | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/chess-input.el b/chess-input.el index 7d94940..ad05cde 100644 --- a/chess-input.el +++ b/chess-input.el @@ -1,4 +1,4 @@ -;;; chess-input.el --- Keyboard entry of algebraic notation, using shortcut notation +;;; chess-input.el --- Keyboard entry of algebraic notation, using shortcut notation -*- lexical-binding: t; -*- ;; Copyright (C) 2002, 2005, 2014 Free Software Foundation, Inc. @@ -36,19 +36,12 @@ (require 'chess-ply) (require 'chess-pos) -(defvar chess-input-move-string "") -(defvar chess-input-moves-pos nil) -(defvar chess-input-moves nil) -(defvar chess-input-position-function nil) -(defvar chess-input-my-color-function nil) -(defvar chess-input-move-function nil) - -(make-variable-buffer-local 'chess-input-move-string) -(make-variable-buffer-local 'chess-input-moves-pos) -(make-variable-buffer-local 'chess-input-moves) -(make-variable-buffer-local 'chess-input-position-function) -(make-variable-buffer-local 'chess-input-my-color-function) -(make-variable-buffer-local 'chess-input-move-function) +(defvar-local chess-input-move-string "") +(defvar-local chess-input-moves-pos nil) +(defvar-local chess-input-moves nil) +(defvar-local chess-input-position-function nil) +(defvar-local chess-input-my-color-function nil) +(defvar-local chess-input-move-function nil) (defun chess-input-test-move (ply) "Return the given PLY if it matches the user's current input." |
