aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-03-17 15:40:29 +0000
committerRichard M. Stallman1996-03-17 15:40:29 +0000
commit5233c7f5fc9d5a9e88ff8e9b94111113d4fa46d9 (patch)
tree6bdfb30523525c12f1ba5869200c2b19f78b9d20
parent4d2790ad5122ee7a8cf9e2f031d7fb53b1e5a8ec (diff)
downloademacs-5233c7f5fc9d5a9e88ff8e9b94111113d4fa46d9.tar.gz
emacs-5233c7f5fc9d5a9e88ff8e9b94111113d4fa46d9.zip
(map-y-or-n-p): Fix previous change.
Delete autoload cookie (file is preloaded).
-rw-r--r--lisp/map-ynp.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/map-ynp.el b/lisp/map-ynp.el
index 5ca5a7ee966..f45fe78e3c3 100644
--- a/lisp/map-ynp.el
+++ b/lisp/map-ynp.el
@@ -34,7 +34,6 @@
34 34
35;;; Code: 35;;; Code:
36 36
37;;;###autoload
38(defun map-y-or-n-p (prompter actor list &optional help action-alist 37(defun map-y-or-n-p (prompter actor list &optional help action-alist
39 no-cursor-in-echo-area) 38 no-cursor-in-echo-area)
40 "Ask a series of boolean questions. 39 "Ask a series of boolean questions.
@@ -79,6 +78,8 @@ are meaningful here.
79Returns the number of actions taken." 78Returns the number of actions taken."
80 (let* ((actions 0) 79 (let* ((actions 0)
81 user-keys mouse-event map prompt char elt tail def 80 user-keys mouse-event map prompt char elt tail def
81 ;; Non-nil means we should use mouse menus to ask.
82 use-menus
82 delayed-switch-frame 83 delayed-switch-frame
83 (next (if (or (and list (symbolp list)) 84 (next (if (or (and list (symbolp list))
84 (subrp list) 85 (subrp list)
@@ -108,6 +109,7 @@ Returns the number of actions taken."
108 (cons (capitalize (nth 2 elt)) 109 (cons (capitalize (nth 2 elt))
109 (vector (nth 1 elt)))) 110 (vector (nth 1 elt))))
110 action-alist)))) 111 action-alist))))
112 use-menus t
111 mouse-event last-nonmenu-event)) 113 mouse-event last-nonmenu-event))
112 (setq user-keys (if action-alist 114 (setq user-keys (if action-alist
113 (concat (mapconcat (function 115 (concat (mapconcat (function
@@ -134,8 +136,8 @@ Returns the number of actions taken."
134 (cond ((stringp prompt) 136 (cond ((stringp prompt)
135 ;; Prompt the user about this object. 137 ;; Prompt the user about this object.
136 (setq quit-flag nil) 138 (setq quit-flag nil)
137 (if mouse-event 139 (if use-menus
138 (setq def (or (x-popup-dialog mouse-event 140 (setq def (or (x-popup-dialog (or mouse-event use-menus)
139 (cons prompt map)) 141 (cons prompt map))
140 'quit)) 142 'quit))
141 ;; Prompt in the echo area. 143 ;; Prompt in the echo area.