comparison lisp/emulation/edt.el @ 85451:e1af3a725ca4

* textmodes/two-column.el (2C-split, 2C-merge): * textmodes/bib-mode.el (bib-find-key, mark-bib): * progmodes/idlw-shell.el (idlwave-shell-move-or-history): * progmodes/etags.el (find-tag-in-order, etags-tags-apropos) * progmodes/ada-xref.el (ada-get-all-references): * obsolete/mlsupport.el (ml-next-line, ml-previous-line): * emulation/vi.el (vi-previous-line-first-nonwhite) (vi-effective-range, vi-put-before): * emulation/edt.el (edt-next-line, edt-previous-line) (edt-paragraph-forward): Use forward-line. * progmodes/etags.el (tags-apropos): Require apropos at compile time too. * progmodes/prolog.el: Require comint when compiling. (inferior-prolog-flavor): Move defvar before use.
author Dan Nicolaescu <dann@ics.uci.edu>
date Fri, 19 Oct 2007 18:41:09 +0000
parents ac0efac52065
children c717580e7817 4b09bb044f38
comparison
equal deleted inserted replaced
85450:a3bb0c15528c 85451:e1af3a725ca4
647 "Move cursor down one line. 647 "Move cursor down one line.
648 Argument NUM is the number of lines to move." 648 Argument NUM is the number of lines to move."
649 (interactive "p") 649 (interactive "p")
650 (edt-check-prefix num) 650 (edt-check-prefix num)
651 (let ((beg (edt-current-line))) 651 (let ((beg (edt-current-line)))
652 (next-line num) 652 (forward-line num)
653 (edt-bottom-check beg num)) 653 (edt-bottom-check beg num))
654 (if edt-x-emacs19-p (setq zmacs-region-stays t))) 654 (if edt-x-emacs19-p (setq zmacs-region-stays t)))
655 655
656 (defun edt-previous-line (num) 656 (defun edt-previous-line (num)
657 "Move cursor up one line. 657 "Move cursor up one line.
658 Argument NUM is the number of lines to move." 658 Argument NUM is the number of lines to move."
659 (interactive "p") 659 (interactive "p")
660 (edt-check-prefix num) 660 (edt-check-prefix num)
661 (let ((beg (edt-current-line))) 661 (let ((beg (edt-current-line)))
662 (previous-line num) 662 (forward-line (- num))
663 (edt-top-check beg num)) 663 (edt-top-check beg num))
664 (if edt-x-emacs19-p (setq zmacs-region-stays t))) 664 (if edt-x-emacs19-p (setq zmacs-region-stays t)))
665 665
666 666
667 ;;; 667 ;;;
1424 (goto-char bottom) (forward-line (- height 2)) (point)))) 1424 (goto-char bottom) (forward-line (- height 2)) (point))))
1425 (while (> num 0) 1425 (while (> num 0)
1426 (forward-paragraph (+ num 1)) 1426 (forward-paragraph (+ num 1))
1427 (start-of-paragraph-text) 1427 (start-of-paragraph-text)
1428 (if (eolp) 1428 (if (eolp)
1429 (next-line 1)) 1429 (forward-line 1))
1430 (setq num (1- num))) 1430 (setq num (1- num)))
1431 (cond((> (point) far) 1431 (cond((> (point) far)
1432 (setq left (save-excursion (forward-line height))) 1432 (setq left (save-excursion (forward-line height)))
1433 (if (= 0 left) (recenter top-margin) 1433 (if (= 0 left) (recenter top-margin)
1434 (recenter (- left bottom-up-margin)))) 1434 (recenter (- left bottom-up-margin))))