[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 67/255: support for converting *very* large files
From: |
Eric Schulte |
Subject: |
[elpa] 67/255: support for converting *very* large files |
Date: |
Sun, 16 Mar 2014 01:02:21 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 2b0a7255967a110c016432e9c38913ea8a368973
Author: Eric Schulte <address@hidden>
Date: Tue May 22 12:45:31 2012 -0400
support for converting *very* large files
---
sgf2el.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/sgf2el.el b/sgf2el.el
index 997b29d..6fcdfb2 100644
--- a/sgf2el.el
+++ b/sgf2el.el
@@ -73,6 +73,10 @@
last-node)
(save-excursion (goto-char start)
(while (re-search-forward re end t)
+ (let ((start (marker-position start)))
+ (message "parsing %.2f%%"
+ (* 100 (/ (float (- (point) start))
+ (float (- (marker-position end) start))))))
(if (string= (match-string 6) ";")
(progn
(replace-match "(" nil nil nil 6)
@@ -85,7 +89,8 @@
(rep (format "%S " (cons key (if (= 1 (length val))
(car val) val)))))
(replace-match rep nil 'literal))))
- (when last-node (insert ")")))))
+ (when last-node (insert ")")))
+ (message "parsing DONE")))
(defmacro sgf2el-set-to-var (var &optional buffer)
"Assign the value of the board in BUFFER to VAR."
@@ -113,7 +118,6 @@
(insert sgf-str)
(goto-char (point-min))
(sgf2el-region)
- (sgf2el-normalize (current-buffer))
(emacs-lisp-mode))
(pop-to-buffer buffer)))
- [elpa] 53/255: passing all tests, (continued)
- [elpa] 53/255: passing all tests, Eric Schulte, 2014/03/15
- [elpa] 54/255: more parsing/syntax tweaks, Eric Schulte, 2014/03/15
- [elpa] 56/255: some utility functions, Eric Schulte, 2014/03/15
- [elpa] 55/255: new approach to parsing sgf files into elisp, Eric Schulte, 2014/03/15
- [elpa] 61/255: passing first 6 tests, Eric Schulte, 2014/03/15
- [elpa] 59/255: passing first two tests, Eric Schulte, 2014/03/15
- [elpa] 62/255: automatically normalize elisp sgf buffers, Eric Schulte, 2014/03/15
- [elpa] 58/255: able to load and play through games w/sgf2el, Eric Schulte, 2014/03/15
- [elpa] 60/255: passing first five tests, Eric Schulte, 2014/03/15
- [elpa] 64/255: passing all tests, Eric Schulte, 2014/03/15
- [elpa] 67/255: support for converting *very* large files,
Eric Schulte <=
- [elpa] 63/255: consistently passing first 7 tests, Eric Schulte, 2014/03/15
- [elpa] 73/255: indentation, Eric Schulte, 2014/03/15
- [elpa] 66/255: parsing weird comments, Eric Schulte, 2014/03/15
- [elpa] 72/255: tweak header, Eric Schulte, 2014/03/15
- [elpa] 68/255: misc, Eric Schulte, 2014/03/15
- [elpa] 65/255: cleanup and straightening, Eric Schulte, 2014/03/15
- [elpa] 71/255: other new files, Eric Schulte, 2014/03/15
- [elpa] 69/255: better names for dynamic local variables, Eric Schulte, 2014/03/15
- [elpa] 70/255: bringing in some files from my old go-mode, Eric Schulte, 2014/03/15
- [elpa] 74/255: sending sgf commands to gnugo, Eric Schulte, 2014/03/15