changeset 9865:9ca8b94a9f07

(vi-kill-region): Pass args to kill-region. (vi-mark-region): Don't pass unexpected args.
author Karl Heuer <kwzh@gnu.org>
date Wed, 09 Nov 1994 06:10:46 +0000
parents 0299d64cdd07
children 435cd6f0ec6d
files lisp/emulation/vi.el
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emulation/vi.el	Wed Nov 09 06:04:46 1994 +0000
+++ b/lisp/emulation/vi.el	Wed Nov 09 06:10:46 1994 +0000
@@ -571,9 +571,9 @@
    (kill-line arg)
    (vi-set-last-change-command 'kill-line arg))
 
-(defun vi-kill-region ()
-  (interactive)
-  (kill-region)
+(defun vi-kill-region (start end)
+  (interactive "*r")
+  (kill-region start end)
   (vi-set-last-change-command 'kill-region))
   
 (defun vi-append-at-end-of-line (arg)
@@ -1356,12 +1356,12 @@
 p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence),
 l(ines)."
   (interactive "p\nc")
-  (cond ((char-equal region ?d) (mark-defun arg))
+  (cond ((char-equal region ?d) (mark-defun))
 	((char-equal region ?s) (mark-sexp arg))
 	((char-equal region ?b) (mark-whole-buffer))
-	((char-equal region ?p) (mark-paragraph arg))
+	((char-equal region ?p) (mark-paragraph))
 	((char-equal region ?P) (mark-page arg))
-	((char-equal region ?f) (mark-c-function arg))
+	((char-equal region ?f) (mark-c-function))
 	((char-equal region ?w) (mark-word arg))
 	((char-equal region ?e) (mark-end-of-sentence arg))
 	((char-equal region ?l) (vi-mark-lines arg))