diff options
| author | Chong Yidong | 2009-06-04 01:09:02 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-06-04 01:09:02 +0000 |
| commit | 29da768fb92f17111c53e0bd3caba1de1e4f4ec4 (patch) | |
| tree | 2a95e29c10d0babf9a0636fb93f8aca3ca0c830a | |
| parent | 4bed590990517dec4e92c5e0241f826004cd67e8 (diff) | |
| download | emacs-29da768fb92f17111c53e0bd3caba1de1e4f4ec4.tar.gz emacs-29da768fb92f17111c53e0bd3caba1de1e4f4ec4.zip | |
* emulation/edt.el (edt-previous-line, edt-next-line): Don't use
forward-line, undoing 2007-10-19 change (Bug#3188).
| -rw-r--r-- | lisp/emulation/edt.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index fe84916b443..a14ac3039f9 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el | |||
| @@ -628,7 +628,8 @@ Argument NUM is the number of lines to move." | |||
| 628 | (interactive "p") | 628 | (interactive "p") |
| 629 | (edt-check-prefix num) | 629 | (edt-check-prefix num) |
| 630 | (let ((beg (edt-current-line))) | 630 | (let ((beg (edt-current-line))) |
| 631 | (forward-line num) | 631 | ;; We're deliberately using next-line instead of forward-line. |
| 632 | (with-no-warnings (next-line num)) | ||
| 632 | (edt-bottom-check beg num)) | 633 | (edt-bottom-check beg num)) |
| 633 | (if (featurep 'xemacs) (setq zmacs-region-stays t))) | 634 | (if (featurep 'xemacs) (setq zmacs-region-stays t))) |
| 634 | 635 | ||
| @@ -638,7 +639,8 @@ Argument NUM is the number of lines to move." | |||
| 638 | (interactive "p") | 639 | (interactive "p") |
| 639 | (edt-check-prefix num) | 640 | (edt-check-prefix num) |
| 640 | (let ((beg (edt-current-line))) | 641 | (let ((beg (edt-current-line))) |
| 641 | (forward-line (- num)) | 642 | ;; We're deliberately using previous-line instead of forward-line. |
| 643 | (with-no-warnings (previous-line num)) | ||
| 642 | (edt-top-check beg num)) | 644 | (edt-top-check beg num)) |
| 643 | (if (featurep 'xemacs) (setq zmacs-region-stays t))) | 645 | (if (featurep 'xemacs) (setq zmacs-region-stays t))) |
| 644 | 646 | ||