Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
369a47a4
Commit
369a47a4
authored
Aug 09, 2005
by
Richard M. Stallman
Browse files
(map-y-or-n-p): Reorder the options
and rename some of them to be more self-explanatory.
parent
ce08e7d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
lisp/emacs-lisp/map-ynp.el
lisp/emacs-lisp/map-ynp.el
+10
-7
No files found.
lisp/emacs-lisp/map-ynp.el
View file @
369a47a4
...
...
@@ -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
)
(
,
(
if
help
(
concat
action
" All "
objects
)
"Do All"
)
.
automatic
)
(
setq
map
`
((
"Yes"
.
act
)
(
"No"
.
skip
)
,@
(
mapcar
(
lambda
(
elt
)
(
cons
(
capitalize
(
nth
2
elt
))
(
cons
(
with-syntax-table
text-mode-syntax-table
(
capitalize
(
nth
2
elt
)))
(
vector
(
nth
1
elt
))))
action-alist
))
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
)
(
"No For All"
.
exit
))
use-menus
t
mouse-event
last-nonmenu-event
))
(
setq
user-keys
(
if
action-alist
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment