mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-01 11:14:55 +00:00
(map-y-or-n-p): Reorder the options
and rename some of them to be more self-explanatory.
This commit is contained in:
parent
ce08e7d4c2
commit
369a47a4fc
@ -103,15 +103,18 @@ Returns the number of actions taken."
|
||||
(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
|
||||
|
Loading…
Reference in New Issue
Block a user