[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 202/255: added interface function to view an SGF file
From: |
Eric Schulte |
Subject: |
[elpa] 202/255: added interface function to view an SGF file |
Date: |
Sun, 16 Mar 2014 01:02:48 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit ff15acfccafd868cff835b179d1b5d2ae72b131b
Author: Eric Schulte <address@hidden>
Date: Tue May 21 10:08:44 2013 -0600
added interface function to view an SGF file
---
go.el | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/go.el b/go.el
index 974f2b6..c63757c 100644
--- a/go.el
+++ b/go.el
@@ -71,4 +71,12 @@
(unless (equal (class-of back-end) 'sgf)
(setq *autoplay* t)))))
+(defun view-sgf (&optional file)
+ "View an SGF file."
+ (interactive "fSGF file: ")
+ (let* ((sgf (make-instance 'sgf :self (sgf2el-file-to-el file) :index '(0)))
+ (buffer (go-board sgf)))
+ (with-current-buffer buffer
+ (setf (index *back-end*) (list 0)))))
+
(provide 'go)
- [elpa] 187/255: don't commit if process already quit, (continued)
- [elpa] 187/255: don't commit if process already quit, Eric Schulte, 2014/03/15
- [elpa] 188/255: adding README, Eric Schulte, 2014/03/15
- [elpa] 199/255: marking captured territory when game ends, Eric Schulte, 2014/03/15
- [elpa] 197/255: use new mark machinery to apply labels, Eric Schulte, 2014/03/15
- [elpa] 195/255: query backend for territory, Eric Schulte, 2014/03/15
- [elpa] 201/255: print score after marking territory, Eric Schulte, 2014/03/15
- [elpa] 189/255: replace flet with cl-flet, Eric Schulte, 2014/03/15
- [elpa] 190/255: set level (mainly for playing GNUGO), Eric Schulte, 2014/03/15
- [elpa] 204/255: prefix external names with package name, Eric Schulte, 2014/03/15
- [elpa] 165/255: working on placing backgrounds behind pieces, Eric Schulte, 2014/03/15
- [elpa] 202/255: added interface function to view an SGF file,
Eric Schulte <=
- [elpa] 205/255: update the README, Eric Schulte, 2014/03/15
- [elpa] 206/255: ensure prisoners are 0 at the start of a new game, Eric Schulte, 2014/03/15
- [elpa] 208/255: support for viewing lists in a buffer, Eric Schulte, 2014/03/15
- [elpa] 207/255: robustly handle prematurely quitting process, Eric Schulte, 2014/03/15
- [elpa] 209/255: adding curry, rcurry and compose helpers, Eric Schulte, 2014/03/15
- [elpa] 213/255: include headers in width calculation, Eric Schulte, 2014/03/15
- [elpa] 215/255: smaller ldots, Eric Schulte, 2014/03/15
- [elpa] 200/255: refresh the go board, Eric Schulte, 2014/03/15
- [elpa] 214/255: refresh list every time the buffer changes size, Eric Schulte, 2014/03/15
- [elpa] 212/255: bug fix, wrong function name, Eric Schulte, 2014/03/15