]> git.eshelyaron.com Git - emacs.git/commitdiff
(vi-mark-region): Use c-mark-function.
authorRichard M. Stallman <rms@gnu.org>
Sun, 3 Jul 2005 16:25:59 +0000 (16:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 3 Jul 2005 16:25:59 +0000 (16:25 +0000)
(c-mark-function): Add point-moving-unit property.
(vi-goto-line): Use with-no-warnings.

lisp/emulation/vi.el

index d6b7c2728b28d03d343e5e969968dc5385484f6b..559d16773473e0d3c856ec74e370f3c656d52368 100644 (file)
@@ -314,7 +314,7 @@ command extensions.")
 (put 'mark-defun 'point-moving-unit 'region)
 (put 'mark-whole-buffer 'point-moving-unit 'region)
 (put 'mark-end-of-sentence 'point-moving-unit 'region)
-(put 'mark-c-function 'point-moving-unit 'region)
+(put 'c-mark-function 'point-moving-unit 'region)
 ;;;
 
 (defvar vi-mark-alist nil
@@ -637,7 +637,8 @@ insert state."
    "Go to ARGth line."
    (interactive "P")
    (if (null (vi-raw-numeric-prefix arg))
-       (end-of-buffer)
+       (with-no-warnings
+        (end-of-buffer))
      (goto-line (vi-prefix-numeric-value arg))))
 
 (defun vi-beginning-of-buffer ()
@@ -1384,7 +1385,7 @@ l(ines)."
        ((char-equal region ?b) (mark-whole-buffer))
        ((char-equal region ?p) (mark-paragraph))
        ((char-equal region ?P) (mark-page arg))
-       ((char-equal region ?f) (mark-c-function))
+       ((char-equal region ?f) (c-mark-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))