changeset 64829:9c1dcec0d1fb

(map-y-or-n-p): Reorder the options and rename some of them to be more self-explanatory.
author Richard M. Stallman <rms@gnu.org>
date Tue, 09 Aug 2005 11:36:58 +0000
parents 7959083b57a2
children e5c6f54442d2
files lisp/emacs-lisp/map-ynp.el
diffstat 1 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/map-ynp.el	Tue Aug 09 11:35:42 2005 +0000
+++ b/lisp/emacs-lisp/map-ynp.el	Tue Aug 09 11:36:58 2005 +0000
@@ -103,15 +103,18 @@
 	(let ((object (if help (capitalize (nth 0 help))))
 	      (objects (if help (capitalize (nth 1 help))))
 	      (action (if help (capitalize (nth 2 help)))))
-	  (setq map `(("Yes" . act) ("No" . skip) ("Quit" . exit)
-		      (,(if help (concat action " " object " And Quit")
-			  "Do it and Quit") . act-and-exit)
+	  (setq map `(("Yes" . act) ("No" . skip)
+		      ,@(mapcar (lambda (elt)
+				  (cons (with-syntax-table
+					    text-mode-syntax-table
+					  (capitalize (nth 2 elt)))
+					(vector (nth 1 elt))))
+				action-alist)
+		      (,(if help (concat action " This But No More")
+			  "Do This But No More") . act-and-exit)
 		      (,(if help (concat action " All " objects)
 			  "Do All") . automatic)
-		      ,@(mapcar (lambda (elt)
-				  (cons (capitalize (nth 2 elt))
-					(vector (nth 1 elt))))
-				action-alist))
+		      ("No For All" . exit))
 		use-menus t
 		mouse-event last-nonmenu-event))
       (setq user-keys (if action-alist