# HG changeset patch # User Karl Heuer # Date 822532644 0 # Node ID 654081a41047eca0fa33bc09feb260712a486dc6 # Parent 96692e2ba1034a66bff1d5cc4f5ef262e9eccdf7 (ex-pwd, vip-info-on-file): Pass proper format string to message. (ex-set): Delete format call inside message. diff -r 96692e2ba103 -r 654081a41047 lisp/emulation/viper-ex.el --- a/lisp/emulation/viper-ex.el Thu Jan 25 01:16:55 1996 +0000 +++ b/lisp/emulation/viper-ex.el Thu Jan 25 01:17:24 1996 +0000 @@ -1412,7 +1412,7 @@ ;; Ex print working directory (defun ex-pwd () - (message default-directory)) + (message "%s" default-directory)) ;; Ex quit command (defun ex-quit () @@ -1560,7 +1560,7 @@ val "nil"))) (if (eq val 0) ; value must be set by the user (let ((cursor-in-echo-area t)) - (message (format ":set %s = " var)) + (message ":set %s = " var) ;; if there are unread events, don't wait (or (vip-set-unread-command-events "") (sit-for 2)) (setq val (read-string (format ":set %s = " var))) @@ -1632,9 +1632,9 @@ )) )) - (message (format "%s %s %s" set-cmd var (if (string-match "^[ \t]*$" val) - (format "%S" val) - val))) + (message "%s %s %s" set-cmd var (if (string-match "^[ \t]*$" val) + (format "%S" val) + val)) (eval (car (read-from-string actual-lisp-cmd))) (if (string= var "fill-column") (if (> val2 0) @@ -1962,7 +1962,7 @@ (if (buffer-modified-p) "[Modified]" "[Unchanged]"))) (if (< (+ 1 (length info) (length file)) (window-width (minibuffer-window))) - (message (concat file " " info)) + (message "%s %s" file info) (save-window-excursion (with-output-to-temp-buffer " *vip-info*" (princ (concat "\n"