diff options
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/play/bubbles.el | 36 |
2 files changed, 21 insertions, 21 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8b2478533da..aa651d38586 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-06-18 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * play/bubbles.el (bubbles--initialize, bubbles--show-scores) | ||
| 4 | (bubbles--game-over): Don't add `intangible' properties since they | ||
| 5 | didn't work anyway. | ||
| 6 | |||
| 1 | 2014-06-18 Juri Linkov <juri@jurta.org> | 7 | 2014-06-18 Juri Linkov <juri@jurta.org> |
| 2 | 8 | ||
| 3 | * vc/ediff-init.el (ediff-current-diff-Ancestor) | 9 | * vc/ediff-init.el (ediff-current-diff-Ancestor) |
diff --git a/lisp/play/bubbles.el b/lisp/play/bubbles.el index e7f5725a0f0..cae151f0b33 100644 --- a/lisp/play/bubbles.el +++ b/lisp/play/bubbles.el | |||
| @@ -1005,20 +1005,17 @@ Set `bubbles--col-offset' and `bubbles--row-offset'." | |||
| 1005 | (set-buffer-modified-p nil) | 1005 | (set-buffer-modified-p nil) |
| 1006 | (erase-buffer) | 1006 | (erase-buffer) |
| 1007 | (insert " ") | 1007 | (insert " ") |
| 1008 | (add-text-properties | 1008 | (put-text-property (point-min) (point) |
| 1009 | (point-min) (point) (list 'intangible t 'display | 1009 | 'display |
| 1010 | (cons 'space | 1010 | (cons 'space (list :height bubbles--row-offset))) |
| 1011 | (list :height bubbles--row-offset)))) | ||
| 1012 | (insert "\n") | 1011 | (insert "\n") |
| 1013 | (let ((max-char (length (bubbles--colors)))) | 1012 | (let ((max-char (length (bubbles--colors)))) |
| 1014 | (dotimes (i (bubbles--grid-height)) | 1013 | (dotimes (i (bubbles--grid-height)) |
| 1015 | (let ((p (point))) | 1014 | (let ((p (point))) |
| 1016 | (insert " ") | 1015 | (insert " ") |
| 1017 | (add-text-properties | 1016 | (put-text-property p (point) |
| 1018 | p (point) (list 'intangible t | 1017 | 'display |
| 1019 | 'display (cons 'space | 1018 | (cons 'space (list :width bubbles--col-offset)))) |
| 1020 | (list :width | ||
| 1021 | bubbles--col-offset))))) | ||
| 1022 | (dotimes (j (bubbles--grid-width)) | 1019 | (dotimes (j (bubbles--grid-width)) |
| 1023 | (let* ((index (random max-char)) | 1020 | (let* ((index (random max-char)) |
| 1024 | (char (nth index bubbles-chars))) | 1021 | (char (nth index bubbles-chars))) |
| @@ -1026,10 +1023,9 @@ Set `bubbles--col-offset' and `bubbles--row-offset'." | |||
| 1026 | (add-text-properties (1- (point)) (point) (list 'index index)))) | 1023 | (add-text-properties (1- (point)) (point) (list 'index index)))) |
| 1027 | (insert "\n")) | 1024 | (insert "\n")) |
| 1028 | (insert "\n ") | 1025 | (insert "\n ") |
| 1029 | (add-text-properties | 1026 | (put-text-property (1- (point)) (point) |
| 1030 | (1- (point)) (point) (list 'intangible t 'display | 1027 | 'display |
| 1031 | (cons 'space | 1028 | (cons 'space (list :width bubbles--col-offset)))) |
| 1032 | (list :width bubbles--col-offset))))) | ||
| 1033 | (put-text-property (point-min) (point-max) 'pointer 'arrow)) | 1029 | (put-text-property (point-min) (point-max) 'pointer 'arrow)) |
| 1034 | (bubbles-mode) | 1030 | (bubbles-mode) |
| 1035 | (bubbles--reset-score) | 1031 | (bubbles--reset-score) |
| @@ -1179,10 +1175,9 @@ Use optional parameter POS instead of point if given." | |||
| 1179 | (delete-region (point) (point-max)) | 1175 | (delete-region (point) (point-max)) |
| 1180 | (insert (format "Selected: %4d\n" bubbles--neighborhood-score)) | 1176 | (insert (format "Selected: %4d\n" bubbles--neighborhood-score)) |
| 1181 | (insert " ") | 1177 | (insert " ") |
| 1182 | (add-text-properties (1- (point)) (point) | 1178 | (put-text-property (1- (point)) (point) |
| 1183 | (list 'intangible t 'display | 1179 | 'display |
| 1184 | (cons 'space | 1180 | (cons 'space (list :width bubbles--col-offset))) |
| 1185 | (list :width bubbles--col-offset)))) | ||
| 1186 | (insert (format "Score: %4d" bubbles--score)) | 1181 | (insert (format "Score: %4d" bubbles--score)) |
| 1187 | (put-text-property pos (point) 'status t)))) | 1182 | (put-text-property pos (point) 'status t)))) |
| 1188 | 1183 | ||
| @@ -1200,10 +1195,9 @@ Use optional parameter POS instead of point if given." | |||
| 1200 | (goto-char (point-max)) | 1195 | (goto-char (point-max)) |
| 1201 | (let* ((inhibit-read-only t)) | 1196 | (let* ((inhibit-read-only t)) |
| 1202 | (insert "\n ") | 1197 | (insert "\n ") |
| 1203 | (add-text-properties (1- (point)) (point) | 1198 | (put-text-property (1- (point)) (point) |
| 1204 | (list 'intangible t 'display | 1199 | 'display |
| 1205 | (cons 'space | 1200 | (cons 'space (list :width bubbles--col-offset))) |
| 1206 | (list :width bubbles--col-offset)))) | ||
| 1207 | (insert "Game Over!")) | 1201 | (insert "Game Over!")) |
| 1208 | ;; save score | 1202 | ;; save score |
| 1209 | (gamegrid-add-score (format "bubbles-%s-%d-%d-%d-scores" | 1203 | (gamegrid-add-score (format "bubbles-%s-%d-%d-%d-scores" |