]> git.eshelyaron.com Git - emacs.git/commitdiff
(vip-replace-string, ex-map, ex-read): Use with-no-warnings.
authorRichard M. Stallman <rms@gnu.org>
Sun, 3 Jul 2005 16:26:56 +0000 (16:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 3 Jul 2005 16:26:56 +0000 (16:26 +0000)
lisp/emulation/vip.el

index 7584436e20a254a763b67ab5d4fcebaa6a60ac50..6caa12179c0e695de60ffcd4c426f783faabb006 100644 (file)
@@ -1112,9 +1112,10 @@ the query replace mode will toggle between string replace and regexp replace."
            (replace-match (vip-read-string
                            (format "Replace regexp \"%s\" with: " str))
                           nil nil))
-       (replace-string
-        str
-        (vip-read-string (format "Replace \"%s\" with: " str)))))))
+       (with-no-warnings
+         (replace-string
+          str
+          (vip-read-string (format "Replace \"%s\" with: " str))))))))
 
 \f
 ;; basic cursor movement.  j, k, l, m commands.
@@ -2830,7 +2831,8 @@ a token has type \(command, address, end-mark\) and value."
       (skip-chars-forward " \t")
       (if (looking-at "[\n|]") (error "Missing rhs"))
       (set-mark (point))
-      (end-of-buffer)
+      (with-no-warnings
+       (end-of-buffer))
       (backward-char 1)
       (setq string (buffer-substring (mark) (point))))
     (if (not (lookup-key ex-map char))
@@ -2900,7 +2902,8 @@ a token has type \(command, address, end-mark\) and value."
        (setq file (buffer-substring (point) (mark)))))
       (if variant
          (shell-command command t)
-       (insert-file file))))
+       (with-no-warnings
+         (insert-file file)))))
 
 (defun ex-set ()
   (eval (list 'setq