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
973f1f2a
Commit
973f1f2a
authored
Jan 09, 2011
by
Chong Yidong
Browse files
* lisp/subr.el (read-char-choice): Use read-key. Suggested by Stefan.
* src/fns.c (Fyes_or_no_p): Minor doc fix.
parent
b7617f6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/subr.el
lisp/subr.el
+1
-1
src/fns.c
src/fns.c
+2
-2
No files found.
lisp/ChangeLog
View file @
973f1f2a
2011-01-09 Chong Yidong <cyd@stupidchicken.com>
* subr.el (read-char-choice): Use read-key.
* custom.el (custom-safe-themes): Rename from
custom-safe-theme-files. Add :risky tag.
(load-theme, custom-theme-load-confirm): Save sha1 hashes to
...
...
lisp/subr.el
View file @
973f1f2a
...
...
@@ -1985,7 +1985,7 @@ keyboard-quit events while waiting for a valid input."
(
unless
(
get-text-property
0
'face
prompt
)
(
setq
prompt
(
propertize
prompt
'face
'minibuffer-prompt
)))
(
setq
char
(
let
((
inhibit-quit
inhibit-keyboard-quit
))
(
read-
event
prompt
)))
(
read-
key
prompt
)))
(
cond
((
not
(
numberp
char
)))
((
memq
char
chars
)
...
...
src/fns.c
View file @
973f1f2a
...
...
@@ -2464,8 +2464,8 @@ DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, MANY, 0,
doc
:
/* Ask user a yes-or-no question. Return t if answer is yes.
The string to display to ask the question is obtained by
formatting the string PROMPT with arguments ARGS (see `format').
The result should end in a space; `y-or-n-p' adds
\"(yes or no) \"
to it.
The result should end in a space; `y
es
-or-n
o
-p' adds
\"(yes or no) \"
to it.
The user must confirm the answer with RET, and can edit it until it
has been confirmed.
...
...
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