diff options
| author | Karl Heuer | 1996-01-25 01:17:24 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-25 01:17:24 +0000 |
| commit | 2bcbf5107294909b1a39d3596125f9631c8bc188 (patch) | |
| tree | 13360ee936ad37bf6be3138c9b0d1d091e573433 | |
| parent | 673dac2045365afe17ca6449df291da152e4fb3d (diff) | |
| download | emacs-2bcbf5107294909b1a39d3596125f9631c8bc188.tar.gz emacs-2bcbf5107294909b1a39d3596125f9631c8bc188.zip | |
(ex-pwd, vip-info-on-file): Pass proper format string to message.
(ex-set): Delete format call inside message.
| -rw-r--r-- | lisp/emulation/viper-ex.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el index 57a813f6c19..4ce8f1453d6 100644 --- a/lisp/emulation/viper-ex.el +++ b/lisp/emulation/viper-ex.el | |||
| @@ -1412,7 +1412,7 @@ reversed.") | |||
| 1412 | 1412 | ||
| 1413 | ;; Ex print working directory | 1413 | ;; Ex print working directory |
| 1414 | (defun ex-pwd () | 1414 | (defun ex-pwd () |
| 1415 | (message default-directory)) | 1415 | (message "%s" default-directory)) |
| 1416 | 1416 | ||
| 1417 | ;; Ex quit command | 1417 | ;; Ex quit command |
| 1418 | (defun ex-quit () | 1418 | (defun ex-quit () |
| @@ -1560,7 +1560,7 @@ reversed.") | |||
| 1560 | val "nil"))) | 1560 | val "nil"))) |
| 1561 | (if (eq val 0) ; value must be set by the user | 1561 | (if (eq val 0) ; value must be set by the user |
| 1562 | (let ((cursor-in-echo-area t)) | 1562 | (let ((cursor-in-echo-area t)) |
| 1563 | (message (format ":set %s = <Value>" var)) | 1563 | (message ":set %s = <Value>" var) |
| 1564 | ;; if there are unread events, don't wait | 1564 | ;; if there are unread events, don't wait |
| 1565 | (or (vip-set-unread-command-events "") (sit-for 2)) | 1565 | (or (vip-set-unread-command-events "") (sit-for 2)) |
| 1566 | (setq val (read-string (format ":set %s = " var))) | 1566 | (setq val (read-string (format ":set %s = " var))) |
| @@ -1632,9 +1632,9 @@ reversed.") | |||
| 1632 | )) | 1632 | )) |
| 1633 | )) | 1633 | )) |
| 1634 | 1634 | ||
| 1635 | (message (format "%s %s %s" set-cmd var (if (string-match "^[ \t]*$" val) | 1635 | (message "%s %s %s" set-cmd var (if (string-match "^[ \t]*$" val) |
| 1636 | (format "%S" val) | 1636 | (format "%S" val) |
| 1637 | val))) | 1637 | val)) |
| 1638 | (eval (car (read-from-string actual-lisp-cmd))) | 1638 | (eval (car (read-from-string actual-lisp-cmd))) |
| 1639 | (if (string= var "fill-column") | 1639 | (if (string= var "fill-column") |
| 1640 | (if (> val2 0) | 1640 | (if (> val2 0) |
| @@ -1962,7 +1962,7 @@ Please contact your system administrator. " | |||
| 1962 | (if (buffer-modified-p) "[Modified]" "[Unchanged]"))) | 1962 | (if (buffer-modified-p) "[Modified]" "[Unchanged]"))) |
| 1963 | (if (< (+ 1 (length info) (length file)) | 1963 | (if (< (+ 1 (length info) (length file)) |
| 1964 | (window-width (minibuffer-window))) | 1964 | (window-width (minibuffer-window))) |
| 1965 | (message (concat file " " info)) | 1965 | (message "%s %s" file info) |
| 1966 | (save-window-excursion | 1966 | (save-window-excursion |
| 1967 | (with-output-to-temp-buffer " *vip-info*" | 1967 | (with-output-to-temp-buffer " *vip-info*" |
| 1968 | (princ (concat "\n" | 1968 | (princ (concat "\n" |