aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorMiles Bader2007-08-03 05:58:06 +0000
committerMiles Bader2007-08-03 05:58:06 +0000
commit2ca773ca40d2c1896757e6382aefff6d9de1c5cc (patch)
tree846419ece5e5d8bc8f11e9786598678af9c78f00 /lisp/emulation
parent49b23c2a404cf31fb1aeecc7932a7304aaf16a67 (diff)
parent0896d93184a719bc994a3e699de27190aac0acb1 (diff)
downloademacs-2ca773ca40d2c1896757e6382aefff6d9de1c5cc.tar.gz
emacs-2ca773ca40d2c1896757e6382aefff6d9de1c5cc.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 843-845) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 84-87) - Update from CVS - Change capitalization of VC backend names for new backends Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-30
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)