Commit 29da768f authored by Chong Yidong's avatar Chong Yidong
Browse files

* emulation/edt.el (edt-previous-line, edt-next-line): Don't use

forward-line, undoing 2007-10-19 change (Bug#3188).
parent 4bed5909
......@@ -628,7 +628,8 @@ Argument NUM is the number of lines to move."
(interactive "p")
(edt-check-prefix num)
(let ((beg (edt-current-line)))
(forward-line num)
;; We're deliberately using next-line instead of forward-line.
(with-no-warnings (next-line num))
(edt-bottom-check beg num))
(if (featurep 'xemacs) (setq zmacs-region-stays t)))
......@@ -638,7 +639,8 @@ Argument NUM is the number of lines to move."
(interactive "p")
(edt-check-prefix num)
(let ((beg (edt-current-line)))
(forward-line (- num))
;; We're deliberately using previous-line instead of forward-line.
(with-no-warnings (previous-line num))
(edt-top-check beg num))
(if (featurep 'xemacs) (setq zmacs-region-stays t)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment