aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-08-09 11:36:58 +0000
committerRichard M. Stallman2005-08-09 11:36:58 +0000
commit369a47a4fc42e79d2fde1c2bca380db4b79fd77d (patch)
treed462096f8fd5c2f8279a505a6f91357c53d90b03
parentce08e7d4c24867cd8257541a6791c41e35837d58 (diff)
downloademacs-369a47a4fc42e79d2fde1c2bca380db4b79fd77d.tar.gz
emacs-369a47a4fc42e79d2fde1c2bca380db4b79fd77d.zip
(map-y-or-n-p): Reorder the options
and rename some of them to be more self-explanatory.
-rw-r--r--lisp/emacs-lisp/map-ynp.el17
1 files changed, 10 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/map-ynp.el b/lisp/emacs-lisp/map-ynp.el
index e4b6f1ddce0..84c7ae58ced 100644
--- a/lisp/emacs-lisp/map-ynp.el
+++ b/lisp/emacs-lisp/map-ynp.el
@@ -103,15 +103,18 @@ Returns the number of actions taken."
103 (let ((object (if help (capitalize (nth 0 help)))) 103 (let ((object (if help (capitalize (nth 0 help))))
104 (objects (if help (capitalize (nth 1 help)))) 104 (objects (if help (capitalize (nth 1 help))))
105 (action (if help (capitalize (nth 2 help))))) 105 (action (if help (capitalize (nth 2 help)))))
106 (setq map `(("Yes" . act) ("No" . skip) ("Quit" . exit) 106 (setq map `(("Yes" . act) ("No" . skip)
107 (,(if help (concat action " " object " And Quit")
108 "Do it and Quit") . act-and-exit)
109 (,(if help (concat action " All " objects)
110 "Do All") . automatic)
111 ,@(mapcar (lambda (elt) 107 ,@(mapcar (lambda (elt)
112 (cons (capitalize (nth 2 elt)) 108 (cons (with-syntax-table
109 text-mode-syntax-table
110 (capitalize (nth 2 elt)))
113 (vector (nth 1 elt)))) 111 (vector (nth 1 elt))))
114 action-alist)) 112 action-alist)
113 (,(if help (concat action " This But No More")
114 "Do This But No More") . act-and-exit)
115 (,(if help (concat action " All " objects)
116 "Do All") . automatic)
117 ("No For All" . exit))
115 use-menus t 118 use-menus t
116 mouse-event last-nonmenu-event)) 119 mouse-event last-nonmenu-event))
117 (setq user-keys (if action-alist 120 (setq user-keys (if action-alist