diff options
| author | Stefan Monnier | 2007-11-16 03:18:49 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-11-16 03:18:49 +0000 |
| commit | 4dc2bd4d48e55856dc1e3bea9f1d04b8ed352f5d (patch) | |
| tree | 16a9be62b0a7033decc75632ae8c8a261fffbc8f | |
| parent | cc39740b6e28432c3bc4a2b61d04a411ce3b41ed (diff) | |
| download | emacs-4dc2bd4d48e55856dc1e3bea9f1d04b8ed352f5d.tar.gz emacs-4dc2bd4d48e55856dc1e3bea9f1d04b8ed352f5d.zip | |
(tpu-next-line, tpu-previous-line, tpu-forward-line, tpu-backward-line)
(tpu-scroll-window-down, tpu-scroll-window-up):
Replace next-line-internal -> line-move.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emulation/tpu-extras.el | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 86f0e839801..f477280f565 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2007-11-16 Rob Riepel <riepel@Stanford.EDU> | ||
| 2 | |||
| 3 | * emulation/tpu-extras.el (tpu-next-line, tpu-previous-line) | ||
| 4 | (tpu-forward-line, tpu-backward-line, tpu-scroll-window-down) | ||
| 5 | (tpu-scroll-window-up): Replace next-line-internal -> line-move. | ||
| 6 | |||
| 1 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * pcvs-parse.el (cvs-parse-table): Ignore errors when looking up files | 9 | * pcvs-parse.el (cvs-parse-table): Ignore errors when looking up files |
diff --git a/lisp/emulation/tpu-extras.el b/lisp/emulation/tpu-extras.el index 609ce2e203b..a98a5ea56b4 100644 --- a/lisp/emulation/tpu-extras.el +++ b/lisp/emulation/tpu-extras.el | |||
| @@ -196,7 +196,7 @@ Prefix argument serves as a repeat count." | |||
| 196 | (interactive "p") | 196 | (interactive "p") |
| 197 | (let ((beg (tpu-current-line))) | 197 | (let ((beg (tpu-current-line))) |
| 198 | (if tpu-cursor-free (or (eobp) (picture-move-down num)) | 198 | (if tpu-cursor-free (or (eobp) (picture-move-down num)) |
| 199 | (next-line-internal num)) | 199 | (line-move num)) |
| 200 | (tpu-bottom-check beg num) | 200 | (tpu-bottom-check beg num) |
| 201 | (setq this-command 'next-line))) | 201 | (setq this-command 'next-line))) |
| 202 | 202 | ||
| @@ -205,7 +205,7 @@ Prefix argument serves as a repeat count." | |||
| 205 | Prefix argument serves as a repeat count." | 205 | Prefix argument serves as a repeat count." |
| 206 | (interactive "p") | 206 | (interactive "p") |
| 207 | (let ((beg (tpu-current-line))) | 207 | (let ((beg (tpu-current-line))) |
| 208 | (if tpu-cursor-free (picture-move-up num) (next-line-internal (- num))) | 208 | (if tpu-cursor-free (picture-move-up num) (line-move (- num))) |
| 209 | (tpu-top-check beg num) | 209 | (tpu-top-check beg num) |
| 210 | (setq this-command 'previous-line))) | 210 | (setq this-command 'previous-line))) |
| 211 | 211 | ||
| @@ -256,7 +256,7 @@ Accepts a prefix argument for the number of lines to move." | |||
| 256 | Prefix argument serves as a repeat count." | 256 | Prefix argument serves as a repeat count." |
| 257 | (interactive "p") | 257 | (interactive "p") |
| 258 | (let ((beg (tpu-current-line))) | 258 | (let ((beg (tpu-current-line))) |
| 259 | (next-line-internal num) | 259 | (line-move num) |
| 260 | (tpu-bottom-check beg num) | 260 | (tpu-bottom-check beg num) |
| 261 | (beginning-of-line))) | 261 | (beginning-of-line))) |
| 262 | 262 | ||
| @@ -266,7 +266,7 @@ Prefix argument serves as repeat count." | |||
| 266 | (interactive "p") | 266 | (interactive "p") |
| 267 | (let ((beg (tpu-current-line))) | 267 | (let ((beg (tpu-current-line))) |
| 268 | (or (bolp) (>= 0 num) (setq num (- num 1))) | 268 | (or (bolp) (>= 0 num) (setq num (- num 1))) |
| 269 | (next-line-internal (- num)) | 269 | (line-move (- num)) |
| 270 | (tpu-top-check beg num) | 270 | (tpu-top-check beg num) |
| 271 | (beginning-of-line))) | 271 | (beginning-of-line))) |
| 272 | 272 | ||
| @@ -346,7 +346,7 @@ A repeat count means scroll that many sections." | |||
| 346 | (let* ((beg (tpu-current-line)) | 346 | (let* ((beg (tpu-current-line)) |
| 347 | (height (1- (window-height))) | 347 | (height (1- (window-height))) |
| 348 | (lines (* num (/ (* height tpu-percent-scroll) 100)))) | 348 | (lines (* num (/ (* height tpu-percent-scroll) 100)))) |
| 349 | (next-line-internal (- lines)) | 349 | (line-move (- lines)) |
| 350 | (tpu-top-check beg lines))) | 350 | (tpu-top-check beg lines))) |
| 351 | 351 | ||
| 352 | (defun tpu-scroll-window-up (num) | 352 | (defun tpu-scroll-window-up (num) |
| @@ -356,7 +356,7 @@ A repeat count means scroll that many sections." | |||
| 356 | (let* ((beg (tpu-current-line)) | 356 | (let* ((beg (tpu-current-line)) |
| 357 | (height (1- (window-height))) | 357 | (height (1- (window-height))) |
| 358 | (lines (* num (/ (* height tpu-percent-scroll) 100)))) | 358 | (lines (* num (/ (* height tpu-percent-scroll) 100)))) |
| 359 | (next-line-internal lines) | 359 | (line-move lines) |
| 360 | (tpu-bottom-check beg lines))) | 360 | (tpu-bottom-check beg lines))) |
| 361 | 361 | ||
| 362 | 362 | ||