Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/lisp/strokes.el Sat Aug 22 19:21:18 2009 +0000 +++ b/lisp/strokes.el Sat Aug 22 19:29:18 2009 +0000 @@ -1187,14 +1187,16 @@ (let ((char (or (car rainbow-chars) ?\.))) (loop for i from 0 to 2 do (loop for j from 0 to 2 do - (goto-line (+ 16 i y)) + (goto-char (point-min)) + (forward-line (+ 15 i y)) (forward-char (+ 1 j x)) (delete-char 1) (insert char))) (setq rainbow-chars (cdr rainbow-chars) lift-flag nil)) ;; Otherwise, just plot the point... - (goto-line (+ 17 y)) + (goto-char (point-min)) + (forward-line (+ 16 y)) (forward-char (+ 2 x)) (subst-char-in-region (point) (1+ (point)) ?\s ?\*))) ((strokes-lift-p point)