]> code.delx.au - gnu-emacs/commitdiff
* emulation/edt.el (edt-previous-line, edt-next-line): Don't use
authorChong Yidong <cyd@stupidchicken.com>
Thu, 4 Jun 2009 01:09:02 +0000 (01:09 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 4 Jun 2009 01:09:02 +0000 (01:09 +0000)
forward-line, undoing 2007-10-19 change (Bug#3188).

lisp/emulation/edt.el

index fe84916b443003e619bc7fee4328f79296936fd2..a14ac3039f961836934e59db6f389c28d44ec52c 100644 (file)
@@ -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)))