diff options
| author | Richard M. Stallman | 2002-03-14 08:57:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-03-14 08:57:36 +0000 |
| commit | 5ed5b2c2da7837f229be2e7d8d6cdd62796a255d (patch) | |
| tree | 182089166ce1125ccc09bb0469dac5607275673c | |
| parent | a5e28954df9f7836e5e439a4c5bf513be7142b34 (diff) | |
| download | emacs-5ed5b2c2da7837f229be2e7d8d6cdd62796a255d.tar.gz emacs-5ed5b2c2da7837f229be2e7d8d6cdd62796a255d.zip | |
(picture-insert, picture-clear-column, picture-draw-rectangle):
Use move-to-column, not move-to-column-force.
| -rw-r--r-- | lisp/textmodes/picture.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/textmodes/picture.el b/lisp/textmodes/picture.el index 0ef0630a202..393e5883538 100644 --- a/lisp/textmodes/picture.el +++ b/lisp/textmodes/picture.el | |||
| @@ -240,11 +240,11 @@ Do \\[command-apropos] `picture-movement' to see commands which control motion." | |||
| 240 | (while (> arg 0) | 240 | (while (> arg 0) |
| 241 | (setq arg (1- arg)) | 241 | (setq arg (1- arg)) |
| 242 | (if (/= picture-desired-column (current-column)) | 242 | (if (/= picture-desired-column (current-column)) |
| 243 | (move-to-column-force picture-desired-column)) | 243 | (move-to-column picture-desired-column t)) |
| 244 | (let ((col (+ picture-desired-column width))) | 244 | (let ((col (+ picture-desired-column width))) |
| 245 | (or (eolp) | 245 | (or (eolp) |
| 246 | (let ((pos (point))) | 246 | (let ((pos (point))) |
| 247 | (move-to-column-force col) | 247 | (move-to-column col t) |
| 248 | (delete-region pos (point))))) | 248 | (delete-region pos (point))))) |
| 249 | (insert ch) | 249 | (insert ch) |
| 250 | (forward-char -1) | 250 | (forward-char -1) |
| @@ -265,7 +265,7 @@ Do \\[command-apropos] `picture-movement' to see those commands." | |||
| 265 | (let* ((original-col (current-column)) | 265 | (let* ((original-col (current-column)) |
| 266 | (target-col (max 0 (+ original-col arg))) | 266 | (target-col (max 0 (+ original-col arg))) |
| 267 | pos) | 267 | pos) |
| 268 | (move-to-column-force target-col) | 268 | (move-to-column target-col t) |
| 269 | (setq pos (point)) | 269 | (setq pos (point)) |
| 270 | (move-to-column original-col) | 270 | (move-to-column original-col) |
| 271 | (delete-region pos (point)) | 271 | (delete-region pos (point)) |
| @@ -547,7 +547,7 @@ Leaves the region surrounding the rectangle." | |||
| 547 | (top (min r1 r2)) | 547 | (top (min r1 r2)) |
| 548 | (bottom (max r1 r2))) | 548 | (bottom (max r1 r2))) |
| 549 | (goto-line top) | 549 | (goto-line top) |
| 550 | (move-to-column-force left) | 550 | (move-to-column left t) |
| 551 | (picture-update-desired-column t) | 551 | (picture-update-desired-column t) |
| 552 | 552 | ||
| 553 | (picture-movement-right) | 553 | (picture-movement-right) |