;; Ex print working directory
(defun ex-pwd ()
- (message default-directory))
+ (message "%s" default-directory))
;; Ex quit command
(defun ex-quit ()
(if (buffer-modified-p) "[Modified]" "[Unchanged]")))
(if (< (+ 1 (length info) (length file))
(window-width (minibuffer-window)))
- (message (concat file " " info))
+ (message "%s" (concat file " " info))
(save-window-excursion
(with-output-to-temp-buffer " *viper-info*"
(princ (concat "\n" file "\n\n\t" info "\n\n")))
variant (if (> (length key-seq) 0)
(prin1-to-string (viper-display-macro key-seq))
"")))
- (message message)
+ (message "%s" message)
(setq event (viper-read-key))
;;(setq event (viper-read-event))
(setq key
(prin1-to-string
(viper-display-macro key-seq))
"")))
- (message message)
+ (message "%s" message)
(setq event (viper-read-key))
;;(setq event (viper-read-event))
(setq key
scope)
viper-custom-file-name))
- (message msg)
+ ;; 2005-09-18 T06:41:22-0400 (Sunday) D. Goel
+ ;; From careful parsing of the above code, it looks like msg
+ ;; couldn't be nil when we reach here. Since it is a string,
+ ;; and a complicated one too, we might as well provide it a "%s"
+ (message "%s" msg)
))
(setq new-elt
This will only work for errors raised by WordStar mode functions."
(interactive)
(if ws-last-errormessage
- (message ws-last-errormessage)
+ (message "%s" ws-last-errormessage)
(message "No WordStar error yet.")))
(defun ws-kill-eol ()