aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorRichard M. Stallman2005-07-03 16:26:56 +0000
committerRichard M. Stallman2005-07-03 16:26:56 +0000
commit70903d8ef70353dea6b3e86c27eba52dffae3779 (patch)
treeabcda8b32b598572d9b2511c451986717d9e48f5 /lisp/emulation
parent3b72eca0a36c364e9fdeb2ae7c50718b3d3c2bea (diff)
downloademacs-70903d8ef70353dea6b3e86c27eba52dffae3779.tar.gz
emacs-70903d8ef70353dea6b3e86c27eba52dffae3779.zip
(vip-replace-string, ex-map, ex-read): Use with-no-warnings.
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/vip.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el
index 7584436e20a..6caa12179c0 100644
--- a/lisp/emulation/vip.el
+++ b/lisp/emulation/vip.el
@@ -1112,9 +1112,10 @@ the query replace mode will toggle between string replace and regexp replace."
1112 (replace-match (vip-read-string 1112 (replace-match (vip-read-string
1113 (format "Replace regexp \"%s\" with: " str)) 1113 (format "Replace regexp \"%s\" with: " str))
1114 nil nil)) 1114 nil nil))
1115 (replace-string 1115 (with-no-warnings
1116 str 1116 (replace-string
1117 (vip-read-string (format "Replace \"%s\" with: " str))))))) 1117 str
1118 (vip-read-string (format "Replace \"%s\" with: " str))))))))
1118 1119
1119 1120
1120;; basic cursor movement. j, k, l, m commands. 1121;; basic cursor movement. j, k, l, m commands.
@@ -2830,7 +2831,8 @@ a token has type \(command, address, end-mark\) and value."
2830 (skip-chars-forward " \t") 2831 (skip-chars-forward " \t")
2831 (if (looking-at "[\n|]") (error "Missing rhs")) 2832 (if (looking-at "[\n|]") (error "Missing rhs"))
2832 (set-mark (point)) 2833 (set-mark (point))
2833 (end-of-buffer) 2834 (with-no-warnings
2835 (end-of-buffer))
2834 (backward-char 1) 2836 (backward-char 1)
2835 (setq string (buffer-substring (mark) (point)))) 2837 (setq string (buffer-substring (mark) (point))))
2836 (if (not (lookup-key ex-map char)) 2838 (if (not (lookup-key ex-map char))
@@ -2900,7 +2902,8 @@ a token has type \(command, address, end-mark\) and value."
2900 (setq file (buffer-substring (point) (mark))))) 2902 (setq file (buffer-substring (point) (mark)))))
2901 (if variant 2903 (if variant
2902 (shell-command command t) 2904 (shell-command command t)
2903 (insert-file file)))) 2905 (with-no-warnings
2906 (insert-file file)))))
2904 2907
2905(defun ex-set () 2908(defun ex-set ()
2906 (eval (list 'setq 2909 (eval (list 'setq