Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3d91e302
Commit
3d91e302
authored
Jan 08, 2011
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc fix for y-or-n-p and yes-or-no-p.
* subr.el (y-or-n-p): Doc fix. * fns.c (Fyes_or_no_p): Doc fix.
parent
278f6845
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
+18
-6
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/subr.el
lisp/subr.el
+5
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/fns.c
src/fns.c
+7
-4
No files found.
lisp/ChangeLog
View file @
3d91e302
2011-01-08 Chong Yidong <cyd@stupidchicken.com>
* subr.el (y-or-n-p): Doc fix.
* custom.el (custom-safe-theme-files): New defcustom.
(custom-theme-load-confirm): New function.
(load-theme): Load theme using `load', confirming with
...
...
lisp/subr.el
View file @
3d91e302
...
...
@@ -2043,8 +2043,11 @@ floating point support."
(
defun
y-or-n-p
(
prompt
&rest
args
)
"Ask user a \"y or n\" question. Return t if answer is \"y\".
The argument PROMPT is the string to display to ask the question.
It should end in a space; `y-or-n-p' adds `(y or n) ' to it.
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 \"(y or n) \"
to it.
No confirmation of the answer is requested; a single character is enough.
Also accepts Space to mean yes, or Delete to mean no. \(Actually, it uses
the bindings in `query-replace-map'; see the documentation of that variable
...
...
src/ChangeLog
View file @
3d91e302
2011-01-08 Chong Yidong <cyd@stupidchicken.com>
* fns.c (Fyes_or_no_p): Doc fix.
2011-01-08 Andreas Schwab <schwab@linux-m68k.org>
* fns.c (Fyes_or_no_p): Add usage.
...
...
src/fns.c
View file @
3d91e302
...
...
@@ -2462,10 +2462,13 @@ do_yes_or_no_p (Lisp_Object prompt)
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.
Takes one argument, which is the string to display to ask the question.
It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it.
The user must confirm the answer with RET,
and can edit it until it has been confirmed.
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 user must confirm the answer with RET, and can edit it until it
has been confirmed.
Under a windowing system a dialog box will be used if `last-nonmenu-event'
is nil, and `use-dialog-box' is non-nil.
...
...
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