aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-11-09 06:10:46 +0000
committerKarl Heuer1994-11-09 06:10:46 +0000
commit30fa657c2818a68de8b27fe5134749199f5e2473 (patch)
treefc228a07c7b105654af89d82b3527800150c1779
parent622de3e97ca7b36b35282bb62ce9795d10fea957 (diff)
downloademacs-30fa657c2818a68de8b27fe5134749199f5e2473.tar.gz
emacs-30fa657c2818a68de8b27fe5134749199f5e2473.zip
(vi-kill-region): Pass args to kill-region.
(vi-mark-region): Don't pass unexpected args.
-rw-r--r--lisp/emulation/vi.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emulation/vi.el b/lisp/emulation/vi.el
index 1b0e03b4391..e22603183ab 100644
--- a/lisp/emulation/vi.el
+++ b/lisp/emulation/vi.el
@@ -571,9 +571,9 @@ insert state."
571 (kill-line arg) 571 (kill-line arg)
572 (vi-set-last-change-command 'kill-line arg)) 572 (vi-set-last-change-command 'kill-line arg))
573 573
574(defun vi-kill-region () 574(defun vi-kill-region (start end)
575 (interactive) 575 (interactive "*r")
576 (kill-region) 576 (kill-region start end)
577 (vi-set-last-change-command 'kill-region)) 577 (vi-set-last-change-command 'kill-region))
578 578
579(defun vi-append-at-end-of-line (arg) 579(defun vi-append-at-end-of-line (arg)
@@ -1356,12 +1356,12 @@ The following CHAR will be the name for the command or macro."
1356p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence), 1356p(aragraph), P(age), f(unction in C/Pascal etc.), w(ord), e(nd of sentence),
1357l(ines)." 1357l(ines)."
1358 (interactive "p\nc") 1358 (interactive "p\nc")
1359 (cond ((char-equal region ?d) (mark-defun arg)) 1359 (cond ((char-equal region ?d) (mark-defun))
1360 ((char-equal region ?s) (mark-sexp arg)) 1360 ((char-equal region ?s) (mark-sexp arg))
1361 ((char-equal region ?b) (mark-whole-buffer)) 1361 ((char-equal region ?b) (mark-whole-buffer))
1362 ((char-equal region ?p) (mark-paragraph arg)) 1362 ((char-equal region ?p) (mark-paragraph))
1363 ((char-equal region ?P) (mark-page arg)) 1363 ((char-equal region ?P) (mark-page arg))
1364 ((char-equal region ?f) (mark-c-function arg)) 1364 ((char-equal region ?f) (mark-c-function))
1365 ((char-equal region ?w) (mark-word arg)) 1365 ((char-equal region ?w) (mark-word arg))
1366 ((char-equal region ?e) (mark-end-of-sentence arg)) 1366 ((char-equal region ?e) (mark-end-of-sentence arg))
1367 ((char-equal region ?l) (vi-mark-lines arg)) 1367 ((char-equal region ?l) (vi-mark-lines arg))