aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorMiles Bader2007-10-20 02:22:59 +0000
committerMiles Bader2007-10-20 02:22:59 +0000
commit5fcd436bab49a3374be4571969abbcf02803bf71 (patch)
treebc16a7841c819832a9189d6c63374950b9ce6bbc /lisp/emulation
parent62c5c1fe177df9e52a7fc7ea3141a04faac5b2f9 (diff)
parentf76840f36cf60feecaf21d55d24ace948800fef7 (diff)
downloademacs-5fcd436bab49a3374be4571969abbcf02803bf71.tar.gz
emacs-5fcd436bab49a3374be4571969abbcf02803bf71.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 899-900) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 129-130) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 259-260) - Merge from emacs--rel--22 - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-272
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/edt.el6
-rw-r--r--lisp/emulation/vi.el6
2 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el
index 44067dba1f2..bff1a583586 100644
--- a/lisp/emulation/edt.el
+++ b/lisp/emulation/edt.el
@@ -649,7 +649,7 @@ 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
@@ -659,7 +659,7 @@ 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
@@ -1426,7 +1426,7 @@ Argument NUM is the positive number of paragraphs to move."
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)))
diff --git a/lisp/emulation/vi.el b/lisp/emulation/vi.el
index 977a7980803..81ad04b60d9 100644
--- a/lisp/emulation/vi.el
+++ b/lisp/emulation/vi.el
@@ -801,7 +801,7 @@ The given COUNT is remembered for future scrollings."
801(defun vi-previous-line-first-nonwhite (count) 801(defun vi-previous-line-first-nonwhite (count)
802 "Go up COUNT lines. Stop at first non-white." 802 "Go up COUNT lines. Stop at first non-white."
803 (interactive "p") 803 (interactive "p")
804 (previous-line count) 804 (forward-line (- count))
805 (back-to-indentation)) 805 (back-to-indentation))
806 806
807(defun vi-scroll-up-window (count) 807(defun vi-scroll-up-window (count)
@@ -1062,7 +1062,7 @@ MOTION-COMMAND with ARG.
1062 (setq end (1+ end))) 1062 (setq end (1+ end)))
1063 ((eq moving-unit 'line) 1063 ((eq moving-unit 'line)
1064 (goto-char begin) (beginning-of-line) (setq begin (point)) 1064 (goto-char begin) (beginning-of-line) (setq begin (point))
1065 (goto-char end) (next-line 1) (beginning-of-line) (setq end (point)))) 1065 (goto-char end) (forward-line 1) (beginning-of-line) (setq end (point))))
1066 (if (> end (point-max)) (setq end (point-max))) ; force in buffer region 1066 (if (> end (point-max)) (setq end (point-max))) ; force in buffer region
1067 (cons begin end))))) 1067 (cons begin end)))))
1068 1068
@@ -1124,7 +1124,7 @@ text as lines. If the optional after-p is given, put after/below the cursor."
1124 (t (error "Register %c is not containing text string" reg)))) 1124 (t (error "Register %c is not containing text string" reg))))
1125 (if (vi-string-end-with-nl-p put-text) ; put back text as lines 1125 (if (vi-string-end-with-nl-p put-text) ; put back text as lines
1126 (if after-p 1126 (if after-p
1127 (progn (next-line 1) (beginning-of-line)) 1127 (progn (forward-line 1) (beginning-of-line))
1128 (beginning-of-line)) 1128 (beginning-of-line))
1129 (if after-p (forward-char 1))) 1129 (if after-p (forward-char 1)))
1130 (push-mark (point)) 1130 (push-mark (point))