aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/tpu-edt.el15
1 files changed, 4 insertions, 11 deletions
diff --git a/lisp/emulation/tpu-edt.el b/lisp/emulation/tpu-edt.el
index f1cdc0ca864..f3792b92e42 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -1035,13 +1035,6 @@ This is useful for inserting control characters."
1035(defalias 'tpu-error 'error) 1035(defalias 'tpu-error 'error)
1036 1036
1037 1037
1038;; Around emacs version 18.57, function line-move was renamed to
1039;; next-line-internal. If we're running under an older emacs,
1040;; make next-line-internal equivalent to line-move.
1041
1042(if (not (fboundp 'next-line-internal)) (fset 'next-line-internal 'line-move))
1043
1044
1045;;; 1038;;;
1046;;; Help 1039;;; Help
1047;;; 1040;;;
@@ -1992,14 +1985,14 @@ With argument, do this that many times."
1992 "Move to next line. 1985 "Move to next line.
1993Prefix argument serves as a repeat count." 1986Prefix argument serves as a repeat count."
1994 (interactive "p") 1987 (interactive "p")
1995 (next-line-internal num) 1988 (line-move num)
1996 (setq this-command 'next-line)) 1989 (setq this-command 'next-line))
1997 1990
1998(defun tpu-previous-line (num) 1991(defun tpu-previous-line (num)
1999 "Move to previous line. 1992 "Move to previous line.
2000Prefix argument serves as a repeat count." 1993Prefix argument serves as a repeat count."
2001 (interactive "p") 1994 (interactive "p")
2002 (next-line-internal (- num)) 1995 (line-move (- num))
2003 (setq this-command 'previous-line)) 1996 (setq this-command 'previous-line))
2004 1997
2005(defun tpu-next-beginning-of-line (num) 1998(defun tpu-next-beginning-of-line (num)
@@ -2122,7 +2115,7 @@ A repeat count means scroll that many sections."
2122 (let* ((beg (tpu-current-line)) 2115 (let* ((beg (tpu-current-line))
2123 (height (1- (window-height))) 2116 (height (1- (window-height)))
2124 (lines (* num (/ (* height tpu-percent-scroll) 100)))) 2117 (lines (* num (/ (* height tpu-percent-scroll) 100))))
2125 (next-line-internal (- lines)) 2118 (line-move (- lines))
2126 (if (> lines beg) (recenter 0)))) 2119 (if (> lines beg) (recenter 0))))
2127 2120
2128(defun tpu-scroll-window-up (num) 2121(defun tpu-scroll-window-up (num)
@@ -2132,7 +2125,7 @@ A repeat count means scroll that many sections."
2132 (let* ((beg (tpu-current-line)) 2125 (let* ((beg (tpu-current-line))
2133 (height (1- (window-height))) 2126 (height (1- (window-height)))
2134 (lines (* num (/ (* height tpu-percent-scroll) 100)))) 2127 (lines (* num (/ (* height tpu-percent-scroll) 100))))
2135 (next-line-internal lines) 2128 (line-move lines)
2136 (if (>= (+ lines beg) height) (recenter -1)))) 2129 (if (>= (+ lines beg) height) (recenter -1))))
2137 2130
2138(defun tpu-pan-right (num) 2131(defun tpu-pan-right (num)