diff options
| author | Glenn Morris | 2009-08-21 07:40:24 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-08-21 07:40:24 +0000 |
| commit | 9b4c5ecd6a04221f17e46d35eed24004a58b2ee2 (patch) | |
| tree | 3728e92eb7a3dba271fd78c8b1c0bc56d4222c27 | |
| parent | ce86eeb58ee1e43093b4be663e47143efea97872 (diff) | |
| download | emacs-9b4c5ecd6a04221f17e46d35eed24004a58b2ee2.tar.gz emacs-9b4c5ecd6a04221f17e46d35eed24004a58b2ee2.zip | |
Use forward-line, not goto-line.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/play/5x5.el | 3 | ||||
| -rw-r--r-- | lisp/play/decipher.el | 3 | ||||
| -rw-r--r-- | lisp/play/gomoku.el | 3 | ||||
| -rw-r--r-- | lisp/play/landmark.el | 3 | ||||
| -rw-r--r-- | lisp/play/mpuz.el | 9 |
6 files changed, 22 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 67732dd2532..1f791472396 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -26,7 +26,14 @@ | |||
| 26 | Use help-print-return-message rather than the now obsolete alias. | 26 | Use help-print-return-message rather than the now obsolete alias. |
| 27 | 27 | ||
| 28 | * calendar/cal-move.el (calendar-cursor-to-nearest-date) | 28 | * calendar/cal-move.el (calendar-cursor-to-nearest-date) |
| 29 | (calendar-cursor-to-visible-date): Use forward-line, not goto-line. | 29 | (calendar-cursor-to-visible-date): |
| 30 | * play/5x5.el (5x5-position-cursor): | ||
| 31 | * play/decipher.el (decipher): | ||
| 32 | * play/gomoku.el (gomoku-goto-xy): | ||
| 33 | * play/landmark.el (lm-goto-xy): | ||
| 34 | * play/mpuz.el (mpuz-paint-errors, mpuz-paint-statistics) | ||
| 35 | (mpuz-paint-digit): | ||
| 36 | Use forward-line, not goto-line. | ||
| 30 | 37 | ||
| 31 | * mail/rmail.el (rmail-obsolete): Delete custom group. | 38 | * mail/rmail.el (rmail-obsolete): Delete custom group. |
| 32 | (rmail-pop-password, rmail-pop-password-required): Make into aliases. | 39 | (rmail-pop-password, rmail-pop-password-required): Make into aliases. |
diff --git a/lisp/play/5x5.el b/lisp/play/5x5.el index d81c4f324d8..f04bc94b113 100644 --- a/lisp/play/5x5.el +++ b/lisp/play/5x5.el | |||
| @@ -300,7 +300,8 @@ Quit current game \\[5x5-quit-game]" | |||
| 300 | 300 | ||
| 301 | (defun 5x5-position-cursor () | 301 | (defun 5x5-position-cursor () |
| 302 | "Position the cursor on the grid." | 302 | "Position the cursor on the grid." |
| 303 | (goto-line (+ (* 5x5-y-pos 5x5-y-scale) 2)) | 303 | (goto-char (point-min)) |
| 304 | (forward-line (1+ (* 5x5-y-pos 5x5-y-scale))) | ||
| 304 | (goto-char (+ (point) (* 5x5-x-pos 5x5-x-scale) (+ 5x5-x-pos 1) 1))) | 305 | (goto-char (+ (point) (* 5x5-x-pos 5x5-x-scale) (+ 5x5-x-pos 1) 1))) |
| 305 | 306 | ||
| 306 | (defun 5x5-made-move () | 307 | (defun 5x5-made-move () |
diff --git a/lisp/play/decipher.el b/lisp/play/decipher.el index 48fe74bc12d..e3dcef93a91 100644 --- a/lisp/play/decipher.el +++ b/lisp/play/decipher.el | |||
| @@ -274,7 +274,8 @@ ABCDEFGHIJKLMNOPQRSTUVWXYZ -*-decipher-*-\n)\n\n") | |||
| 274 | (insert ">\n"))))) ;Mark plaintext line | 274 | (insert ">\n"))))) ;Mark plaintext line |
| 275 | (delete-blank-lines) ;Remove any blank lines | 275 | (delete-blank-lines) ;Remove any blank lines |
| 276 | (delete-blank-lines)) ; at end of buffer | 276 | (delete-blank-lines)) ; at end of buffer |
| 277 | (goto-line 4) | 277 | (goto-char (point-min)) |
| 278 | (forward-line 3) | ||
| 278 | (decipher-mode)) | 279 | (decipher-mode)) |
| 279 | 280 | ||
| 280 | ;;;###autoload | 281 | ;;;###autoload |
diff --git a/lisp/play/gomoku.el b/lisp/play/gomoku.el index 7cb23eb16dd..f0cdea13474 100644 --- a/lisp/play/gomoku.el +++ b/lisp/play/gomoku.el | |||
| @@ -989,7 +989,8 @@ If the game is finished, this command requests for another game." | |||
| 989 | (defun gomoku-goto-xy (x y) | 989 | (defun gomoku-goto-xy (x y) |
| 990 | "Move point to square at X, Y coords." | 990 | "Move point to square at X, Y coords." |
| 991 | (let ((inhibit-point-motion-hooks t)) | 991 | (let ((inhibit-point-motion-hooks t)) |
| 992 | (goto-line (+ 1 gomoku-y-offset (* gomoku-square-height (1- y))))) | 992 | (goto-char (point-min)) |
| 993 | (forward-line (+ gomoku-y-offset (* gomoku-square-height (1- y))))) | ||
| 993 | (move-to-column (+ gomoku-x-offset (* gomoku-square-width (1- x))))) | 994 | (move-to-column (+ gomoku-x-offset (* gomoku-square-width (1- x))))) |
| 994 | 995 | ||
| 995 | (defun gomoku-plot-square (square value) | 996 | (defun gomoku-plot-square (square value) |
diff --git a/lisp/play/landmark.el b/lisp/play/landmark.el index 482e32f6ef0..95840d81900 100644 --- a/lisp/play/landmark.el +++ b/lisp/play/landmark.el | |||
| @@ -876,7 +876,8 @@ If the game is finished, this command requests for another game." | |||
| 876 | (defun lm-goto-xy (x y) | 876 | (defun lm-goto-xy (x y) |
| 877 | "Move point to square at X, Y coords." | 877 | "Move point to square at X, Y coords." |
| 878 | (let ((inhibit-point-motion-hooks t)) | 878 | (let ((inhibit-point-motion-hooks t)) |
| 879 | (goto-line (+ 1 lm-y-offset (* lm-square-height (1- y))))) | 879 | (goto-char (point-min)) |
| 880 | (forward-line (+ lm-y-offset (* lm-square-height (1- y))))) | ||
| 880 | (move-to-column (+ lm-x-offset (* lm-square-width (1- x))))) | 881 | (move-to-column (+ lm-x-offset (* lm-square-width (1- x))))) |
| 881 | 882 | ||
| 882 | (defun lm-plot-square (square value) | 883 | (defun lm-plot-square (square value) |
diff --git a/lisp/play/mpuz.el b/lisp/play/mpuz.el index 5725bc1d825..7e8222d7e1d 100644 --- a/lisp/play/mpuz.el +++ b/lisp/play/mpuz.el | |||
| @@ -320,12 +320,14 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 320 | (defun mpuz-paint-errors () | 320 | (defun mpuz-paint-errors () |
| 321 | "Paint error count on the puzzle screen." | 321 | "Paint error count on the puzzle screen." |
| 322 | (mpuz-switch-to-window) | 322 | (mpuz-switch-to-window) |
| 323 | (goto-line 3) | 323 | (goto-char (point-min)) |
| 324 | (forward-line 2) | ||
| 324 | (mpuz-paint-number (prin1-to-string mpuz-nb-errors))) | 325 | (mpuz-paint-number (prin1-to-string mpuz-nb-errors))) |
| 325 | 326 | ||
| 326 | (defun mpuz-paint-statistics () | 327 | (defun mpuz-paint-statistics () |
| 327 | "Paint statistics about previous games on the puzzle screen." | 328 | "Paint statistics about previous games on the puzzle screen." |
| 328 | (goto-line 7) | 329 | (goto-char (point-min)) |
| 330 | (forward-line 6) | ||
| 329 | (mpuz-paint-number (prin1-to-string mpuz-nb-completed-games)) | 331 | (mpuz-paint-number (prin1-to-string mpuz-nb-completed-games)) |
| 330 | (mpuz-paint-number | 332 | (mpuz-paint-number |
| 331 | (format "%.2f" | 333 | (format "%.2f" |
| @@ -352,7 +354,8 @@ You may abort a game by typing \\<mpuz-mode-map>\\[mpuz-offer-abort]." | |||
| 352 | ('mpuz-unsolved)))) | 354 | ('mpuz-unsolved)))) |
| 353 | buffer-read-only) | 355 | buffer-read-only) |
| 354 | (mapc (lambda (square) | 356 | (mapc (lambda (square) |
| 355 | (goto-line (car square)) ; line before column! | 357 | (goto-char (point-min)) |
| 358 | (forward-line (1- (car square))) ; line before column! | ||
| 356 | (move-to-column (cdr square)) | 359 | (move-to-column (cdr square)) |
| 357 | (insert char) | 360 | (insert char) |
| 358 | (set-text-properties (1- (point)) (point) face) | 361 | (set-text-properties (1- (point)) (point) face) |