Mercurial > emacs
comparison lisp/strokes.el @ 104543:da8b3e61b182
Use forward-line rather than goto-line.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 22 Aug 2009 19:29:18 +0000 |
parents | 2e0765155e47 |
children | bd2966850aac |
comparison
equal
deleted
inserted
replaced
104542:5986db97372e | 104543:da8b3e61b182 |
---|---|
1185 (if (and lift-flag (not b/w-only)) | 1185 (if (and lift-flag (not b/w-only)) |
1186 ;; mark starting point with the appropriate color | 1186 ;; mark starting point with the appropriate color |
1187 (let ((char (or (car rainbow-chars) ?\.))) | 1187 (let ((char (or (car rainbow-chars) ?\.))) |
1188 (loop for i from 0 to 2 do | 1188 (loop for i from 0 to 2 do |
1189 (loop for j from 0 to 2 do | 1189 (loop for j from 0 to 2 do |
1190 (goto-line (+ 16 i y)) | 1190 (goto-char (point-min)) |
1191 (forward-line (+ 15 i y)) | |
1191 (forward-char (+ 1 j x)) | 1192 (forward-char (+ 1 j x)) |
1192 (delete-char 1) | 1193 (delete-char 1) |
1193 (insert char))) | 1194 (insert char))) |
1194 (setq rainbow-chars (cdr rainbow-chars) | 1195 (setq rainbow-chars (cdr rainbow-chars) |
1195 lift-flag nil)) | 1196 lift-flag nil)) |
1196 ;; Otherwise, just plot the point... | 1197 ;; Otherwise, just plot the point... |
1197 (goto-line (+ 17 y)) | 1198 (goto-char (point-min)) |
1199 (forward-line (+ 16 y)) | |
1198 (forward-char (+ 2 x)) | 1200 (forward-char (+ 2 x)) |
1199 (subst-char-in-region (point) (1+ (point)) ?\s ?\*))) | 1201 (subst-char-in-region (point) (1+ (point)) ?\s ?\*))) |
1200 ((strokes-lift-p point) | 1202 ((strokes-lift-p point) |
1201 ;; a lift--tell the loop to X out the next point... | 1203 ;; a lift--tell the loop to X out the next point... |
1202 (setq lift-flag t)))) | 1204 (setq lift-flag t)))) |