summaryrefslogtreecommitdiff
path: root/lisp/map-ynp.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-04-17 18:52:41 +0000
committerKarl Heuer <kwzh@gnu.org>1995-04-17 18:52:41 +0000
commit1ab30bc82bf65afe0d02a20ccfbf1bb633e80113 (patch)
treea0c962417bfd56e0e41d2e403e3ac86ec8c204bd /lisp/map-ynp.el
parent66b34ebc97c260f943a280210a0f26af857a85c9 (diff)
downloademacs-1ab30bc82bf65afe0d02a20ccfbf1bb633e80113.tar.gz
(map-y-or-n-p): Don't log prompt messages.
Diffstat (limited to 'lisp/map-ynp.el')
-rw-r--r--lisp/map-ynp.el18
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/map-ynp.el b/lisp/map-ynp.el
index 34b93cbfce8..8194b568e40 100644
--- a/lisp/map-ynp.el
+++ b/lisp/map-ynp.el
@@ -139,16 +139,17 @@ Returns the number of actions taken."
(cons prompt map))
'quit))
;; Prompt in the echo area.
- (let ((cursor-in-echo-area (not no-cursor-in-echo-area)))
+ (let ((cursor-in-echo-area (not no-cursor-in-echo-area))
+ (message-log-max nil))
(message "%s(y, n, !, ., q, %sor %s) "
prompt user-keys
(key-description (vector help-char)))
- (setq char (read-event)))
- ;; Show the answer to the question.
- (message "%s(y, n, !, ., q, %sor %s) %s"
- prompt user-keys
- (key-description (vector help-char))
- (single-key-description char))
+ (setq char (read-event))
+ ;; Show the answer to the question.
+ (message "%s(y, n, !, ., q, %sor %s) %s"
+ prompt user-keys
+ (key-description (vector help-char))
+ (single-key-description char)))
(setq def (lookup-key map (vector char))))
(cond ((eq def 'exit)
(setq next (function (lambda () nil))))
@@ -243,7 +244,8 @@ the current %s and exit."
(setq unread-command-events
(cons delayed-switch-frame unread-command-events))))
;; Clear the last prompt from the minibuffer.
- (message "")
+ (let ((message-log-max nil))
+ (message ""))
;; Return the number of actions that were taken.
actions))