[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 166/255: board images working with backgrounds
From: |
Eric Schulte |
Subject: |
[elpa] 166/255: board images working with backgrounds |
Date: |
Sun, 16 Mar 2014 01:02:41 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit ac868d11eb575cd50f1688d7d703ed2d4ded5c68
Author: Eric Schulte <address@hidden>
Date: Tue Jun 5 14:38:40 2012 -0600
board images working with backgrounds
---
go-board-faces.el | 6 ------
go-board.el | 7 ++-----
go-util.el | 3 +++
3 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/go-board-faces.el b/go-board-faces.el
index 4fd2035..99efc36 100644
--- a/go-board-faces.el
+++ b/go-board-faces.el
@@ -143,12 +143,6 @@
((stop (offset . 1) (stop-color . "#777")))))
((circle (cx . 12.5) (cy . 12.5) (r . 6.125) (fill . "url(#$rg)")))))
-(defvar go-board-image-black
- (eval (cons 'go-board-image go-board-image-black-svg)))
-
-(defvar go-board-image-white
- (eval (cons 'go-board-image go-board-image-white-svg)))
-
(go-board-image-sides background)
(eval `(go-board-image-sides black ,@go-board-image-black-svg))
(eval `(go-board-image-sides white ,@go-board-image-white-svg))
diff --git a/go-board.el b/go-board.el
index 3b60680..2bec034 100644
--- a/go-board.el
+++ b/go-board.el
@@ -216,9 +216,6 @@
(body (board-body-to-string board)))
(mapconcat #'identity (list header body header) "\n")))
-(defun sym-cat (&rest syms)
- (intern (mapconcat #'symbol-name (delq nil syms) "-")))
-
(defun go-board-paint (&optional start end)
(interactive "r")
(flet ((ov (point face &optional back)
@@ -228,11 +225,11 @@
(when go-board-use-images
(overlay-put ovly 'display
(eval (sym-cat 'go-board 'image face back))))
- (push ovly go-board-overlays)))
+ (push ovly *go-board-overlays*)))
(hide (point)
(let ((ovly (make-overlay point (1+ point))))
(overlay-put ovly 'invisible t)
- (push ovly go-board-overlays))))
+ (push ovly *go-board-overlays*))))
(let ((start (or start (point-min)))
(end (or end (point-max))))
(dolist (point (range start end))
diff --git a/go-util.el b/go-util.el
index 1533f7d..38b5289 100644
--- a/go-util.el
+++ b/go-util.el
@@ -104,4 +104,7 @@
((< num 9) (+ ?A (1- num)))
(t (+ ?A num)))))
+(defun sym-cat (&rest syms)
+ (intern (mapconcat #'symbol-name (delq nil syms) "-")))
+
(provide 'go-util)
- [elpa] 154/255: don't quit main back-end when quitting a board, (continued)
- [elpa] 154/255: don't quit main back-end when quitting a board, Eric Schulte, 2014/03/15
- [elpa] 158/255: beginning to translate svg images into elisp, Eric Schulte, 2014/03/15
- [elpa] 149/255: push all buffer-local variables into an igs object, Eric Schulte, 2014/03/15
- [elpa] 162/255: painting a nice svg board, but more to do, Eric Schulte, 2014/03/15
- [elpa] 159/255: translated all svg stone images into elisp, Eric Schulte, 2014/03/15
- [elpa] 164/255: prompt before quitting, Eric Schulte, 2014/03/15
- [elpa] 153/255: safety measure when observing igs games, Eric Schulte, 2014/03/15
- [elpa] 163/255: sorted out different types of backgrounds, Eric Schulte, 2014/03/15
- [elpa] 168/255: adding option to play a sound during moves, Eric Schulte, 2014/03/15
- [elpa] 155/255: less permissive igs move regular expression, Eric Schulte, 2014/03/15
- [elpa] 166/255: board images working with backgrounds,
Eric Schulte <=
- [elpa] 173/255: start gnugo process when object is created, Eric Schulte, 2014/03/15
- [elpa] 167/255: cleanup images in board faces, Eric Schulte, 2014/03/15
- [elpa] 170/255: fix spacing of labels when using image for display, Eric Schulte, 2014/03/15
- [elpa] 174/255: quit the main back-end as well, Eric Schulte, 2014/03/15
- [elpa] 160/255: removing stones/ directory, Eric Schulte, 2014/03/15
- [elpa] 175/255: support for playing different types of games, Eric Schulte, 2014/03/15
- [elpa] 157/255: images of stones, Eric Schulte, 2014/03/15
- [elpa] 177/255: future tasks, Eric Schulte, 2014/03/15
- [elpa] 182/255: reverse order of sizes, Eric Schulte, 2014/03/15
- [elpa] 172/255: re-organized how files are loaded, Eric Schulte, 2014/03/15