aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-08-02 17:43:00 +0000
committerRichard M. Stallman2007-08-02 17:43:00 +0000
commit77b4381a2d7ba5205acb93a5462cea409a7d24d7 (patch)
tree656082fa76765dd1c84a5aa922215598a61442f1
parent7d1dad0cbd3123f5eaf6088ec0a91335ac44f60c (diff)
downloademacs-77b4381a2d7ba5205acb93a5462cea409a7d24d7.tar.gz
emacs-77b4381a2d7ba5205acb93a5462cea409a7d24d7.zip
(next-line-internal): Setting deleted. All callers use line-move.
-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 f164fb8eb29..414ae7bf14e 100644
--- a/lisp/emulation/tpu-edt.el
+++ b/lisp/emulation/tpu-edt.el
@@ -1069,13 +1069,6 @@ This is useful for inserting control characters."
1069(defalias 'tpu-error 'error) 1069(defalias 'tpu-error 'error)
1070 1070
1071 1071
1072;; Around emacs version 18.57, function line-move was renamed to
1073;; next-line-internal. If we're running under an older emacs,
1074;; make next-line-internal equivalent to line-move.
1075
1076(if (not (fboundp 'next-line-internal)) (fset 'next-line-internal 'line-move))
1077
1078
1079;;; 1072;;;
1080;;; Help 1073;;; Help
1081;;; 1074;;;
@@ -2026,14 +2019,14 @@ With argument, do this that many times."
2026 "Move to next line. 2019 "Move to next line.
2027Prefix argument serves as a repeat count." 2020Prefix argument serves as a repeat count."
2028 (interactive "p") 2021 (interactive "p")
2029 (next-line-internal num) 2022 (line-move num)
2030 (setq this-command 'next-line)) 2023 (setq this-command 'next-line))
2031 2024
2032(defun tpu-previous-line (num) 2025(defun tpu-previous-line (num)
2033 "Move to previous line. 2026 "Move to previous line.
2034Prefix argument serves as a repeat count." 2027Prefix argument serves as a repeat count."
2035 (interactive "p") 2028 (interactive "p")
2036 (next-line-internal (- num)) 2029 (line-move (- num))
2037 (setq this-command 'previous-line)) 2030 (setq this-command 'previous-line))
2038 2031
2039(defun tpu-next-beginning-of-line (num) 2032(defun tpu-next-beginning-of-line (num)
@@ -2156,7 +2149,7 @@ A repeat count means scroll that many sections."
2156 (let* ((beg (tpu-current-line)) 2149 (let* ((beg (tpu-current-line))
2157 (height (1- (window-height))) 2150 (height (1- (window-height)))
2158 (lines (* num (/ (* height tpu-percent-scroll) 100)))) 2151 (lines (* num (/ (* height tpu-percent-scroll) 100))))
2159 (next-line-internal (- lines)) 2152 (line-move (- lines))
2160 (if (> lines beg) (recenter 0)))) 2153 (if (> lines beg) (recenter 0))))
2161 2154
2162(defun tpu-scroll-window-up (num) 2155(defun tpu-scroll-window-up (num)
@@ -2166,7 +2159,7 @@ A repeat count means scroll that many sections."
2166 (let* ((beg (tpu-current-line)) 2159 (let* ((beg (tpu-current-line))
2167 (height (1- (window-height))) 2160 (height (1- (window-height)))
2168 (lines (* num (/ (* height tpu-percent-scroll) 100)))) 2161 (lines (* num (/ (* height tpu-percent-scroll) 100))))
2169 (next-line-internal lines) 2162 (line-move lines)
2170 (if (>= (+ lines beg) height) (recenter -1)))) 2163 (if (>= (+ lines beg) height) (recenter -1))))
2171 2164
2172(defun tpu-pan-right (num) 2165(defun tpu-pan-right (num)