[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 88/255: made the *back-ends* variable singular
From: |
Eric Schulte |
Subject: |
[elpa] 88/255: made the *back-ends* variable singular |
Date: |
Sun, 16 Mar 2014 01:02:25 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 050c3f9ca92bae61da9ce61ef9d0f54a74c6b1f6
Author: Eric Schulte <address@hidden>
Date: Thu May 24 19:46:28 2012 -0600
made the *back-ends* variable singular
---
sgf-board.el | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/sgf-board.el b/sgf-board.el
index a66c3ba..35019c5 100644
--- a/sgf-board.el
+++ b/sgf-board.el
@@ -29,10 +29,10 @@
(require 'sgf-util)
(require 'sgf-trans)
-(defvar *history* nil "Holds the board history for a GO buffer.")
-(defvar *size* nil "Holds the board size.")
-(defvar *turn* nil "Holds the color of the current turn.")
-(defvar *back-ends* nil "Holds the back-ends connected to a board.")
+(defvar *history* nil "Holds the board history for a GO buffer.")
+(defvar *size* nil "Holds the board size.")
+(defvar *turn* nil "Holds the color of the current turn.")
+(defvar *back-end* nil "Holds the primary back-end connected to a board.")
(defvar black-piece "X")
@@ -188,7 +188,7 @@
(board-to-string
(pieces-to-board (car *history*) *size*))
"\n\n")
- (let ((comment (sgf<-comment (car *back-ends*))))
+ (let ((comment (sgf<-comment *back-end*)))
(when comment
(insert (make-string (+ 6 (* 2 *size*)) ?=)
"\n\n"
@@ -201,7 +201,7 @@
(sgf-board-mode)
(when (sgf<-name back-end)
(rename-buffer (ear-muffs (sgf<-name back-end)) 'unique))
- (set (make-local-variable '*back-ends*) (list back-end))
+ (set (make-local-variable '*back-end*) back-end)
(set (make-local-variable '*turn*) :B)
(set (make-local-variable '*size*) (sgf<-size back-end))
(set (make-local-variable '*history*)
@@ -243,7 +243,7 @@
(format "[%s] Y pos: " color)
(mapcar #'number-to-string
(range 1 *size*))))))))))
- (sgf->move (car *back-ends*) move)
+ (sgf->move *back-end* move)
(apply-turn-to-board (list move))
(setf *turn* (other-color *turn*))))
@@ -276,14 +276,14 @@
(defun sgf-board-next (&optional count)
(interactive "p")
(dotimes (n (or count 1) (or count 1))
- (apply-turn-to-board (sgf<-turn (car *back-ends*) *turn*))
+ (apply-turn-to-board (sgf<-turn *back-end* *turn*))
(setf *turn* (other-color *turn*))))
(defun sgf-board-prev (&optional count)
(interactive "p")
(dotimes (n (or count 1) (or count 1))
- (message "index:" (index (car *back-ends*)))
- (sgf->undo (car *back-ends*))
+ (message "index:" (index *back-end*))
+ (sgf->undo *back-end*)
(pop *history*)
(update-display (current-buffer))))
- [elpa] 74/255: sending sgf commands to gnugo, (continued)
- [elpa] 74/255: sending sgf commands to gnugo, Eric Schulte, 2014/03/15
- [elpa] 76/255: sgf-play -> sgf-trans, Eric Schulte, 2014/03/15
- [elpa] 75/255: stubbing out board interaction functions, Eric Schulte, 2014/03/15
- [elpa] 78/255: stubbing out generic trans functions, Eric Schulte, 2014/03/15
- [elpa] 79/255: communicating with gnugo through gtp generics, Eric Schulte, 2014/03/15
- [elpa] 77/255: saner requirement dependency graph, Eric Schulte, 2014/03/15
- [elpa] 81/255: normalization, Eric Schulte, 2014/03/15
- [elpa] 80/255: splitting the sgf back end from the board interface, Eric Schulte, 2014/03/15
- [elpa] 84/255: more transition, Eric Schulte, 2014/03/15
- [elpa] 82/255: organization, Eric Schulte, 2014/03/15
- [elpa] 88/255: made the *back-ends* variable singular,
Eric Schulte <=
- [elpa] 57/255: splitting sgf.el into board test and utility files, Eric Schulte, 2014/03/15
- [elpa] 87/255: removed old variable, Eric Schulte, 2014/03/15
- [elpa] 83/255: starting to transition to generic board interface, Eric Schulte, 2014/03/15
- [elpa] 85/255: working with new set less some state-leak issues, Eric Schulte, 2014/03/15
- [elpa] 90/255: moving around major mode and key bindings, Eric Schulte, 2014/03/15
- [elpa] 91/255: adding properties to the board string, Eric Schulte, 2014/03/15
- [elpa] 86/255: playing gnugo, Eric Schulte, 2014/03/15
- [elpa] 94/255: remove old variable from tests, Eric Schulte, 2014/03/15
- [elpa] 92/255: worked around stupid bug in mapconcat, Eric Schulte, 2014/03/15
- [elpa] 93/255: able to play against gnugo, Eric Schulte, 2014/03/15