diff options
| author | Karl Heuer | 1996-01-25 01:15:21 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-01-25 01:15:21 +0000 |
| commit | f0685fda1e165ca90461757e462dec4f6b48ea38 (patch) | |
| tree | 04681bcfa068892c8c98a1570800ca151c75bd41 | |
| parent | 4cea11ffadc5a3ea1f79bf6558572d21d51dbb9c (diff) | |
| download | emacs-f0685fda1e165ca90461757e462dec4f6b48ea38.tar.gz emacs-f0685fda1e165ca90461757e462dec4f6b48ea38.zip | |
(edt-display-the-time): Pass proper format string to message.
(edt-y-or-n-p): Delete format call inside message.
| -rw-r--r-- | lisp/emulation/edt.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emulation/edt.el b/lisp/emulation/edt.el index 875d2134d0b..6d364eed73a 100644 --- a/lisp/emulation/edt.el +++ b/lisp/emulation/edt.el | |||
| @@ -1185,7 +1185,7 @@ Accepts a positive prefix argument for the number times to duplicate the line." | |||
| 1185 | "Display the current time." | 1185 | "Display the current time." |
| 1186 | (interactive) | 1186 | (interactive) |
| 1187 | (set 'time-string (current-time-string)) | 1187 | (set 'time-string (current-time-string)) |
| 1188 | (message time-string)) | 1188 | (message "%s" time-string)) |
| 1189 | 1189 | ||
| 1190 | ;;; | 1190 | ;;; |
| 1191 | ;;; LEARN | 1191 | ;;; LEARN |
| @@ -1408,7 +1408,7 @@ and the cursor is left to rest at the beginning of that word." | |||
| 1408 | "Prompt for a y or n answer with positive default. | 1408 | "Prompt for a y or n answer with positive default. |
| 1409 | Optional second argument NOT-YES changes default to negative. | 1409 | Optional second argument NOT-YES changes default to negative. |
| 1410 | Like emacs y-or-n-p, also accepts space as y and DEL as n." | 1410 | Like emacs y-or-n-p, also accepts space as y and DEL as n." |
| 1411 | (message (format "%s[%s]" prompt (if not-yes "n" "y"))) | 1411 | (message "%s[%s]" prompt (if not-yes "n" "y")) |
| 1412 | (let ((doit t)) | 1412 | (let ((doit t)) |
| 1413 | (while doit | 1413 | (while doit |
| 1414 | (setq doit nil) | 1414 | (setq doit nil) |
| @@ -1420,8 +1420,8 @@ Like emacs y-or-n-p, also accepts space as y and DEL as n." | |||
| 1420 | ((= ans ?\r) (setq edt-last-answer (not not-yes))) | 1420 | ((= ans ?\r) (setq edt-last-answer (not not-yes))) |
| 1421 | (t | 1421 | (t |
| 1422 | (setq doit t) (beep) | 1422 | (setq doit t) (beep) |
| 1423 | (message (format "Please answer y or n. %s[%s]" | 1423 | (message "Please answer y or n. %s[%s]" |
| 1424 | prompt (if not-yes "n" "y")))))))) | 1424 | prompt (if not-yes "n" "y"))))))) |
| 1425 | edt-last-answer) | 1425 | edt-last-answer) |
| 1426 | 1426 | ||
| 1427 | (defun edt-load-xkeys (file) | 1427 | (defun edt-load-xkeys (file) |