# HG changeset patch # User Richard M. Stallman # Date 1123587418 0 # Node ID 9c1dcec0d1fb64879d50bcac26205111ca90e232 # Parent 7959083b57a2568b74fdbddc578f14f37a70a622 (map-y-or-n-p): Reorder the options and rename some of them to be more self-explanatory. diff -r 7959083b57a2 -r 9c1dcec0d1fb lisp/emacs-lisp/map-ynp.el --- 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