diff options
| author | Karl Heuer | 1999-07-26 16:42:38 +0000 |
|---|---|---|
| committer | Karl Heuer | 1999-07-26 16:42:38 +0000 |
| commit | 2b8503eae9210941144e0eefe73cbeba3dd531b3 (patch) | |
| tree | 3d536fc1c0bd8b90b588f141cc19e68b9da224a8 /src | |
| parent | 3d08948993c895097bebdc51125ab6d4f83e4807 (diff) | |
| download | emacs-2b8503eae9210941144e0eefe73cbeba3dd531b3.tar.gz emacs-2b8503eae9210941144e0eefe73cbeba3dd531b3.zip | |
(Fy_or_n_p): Doc fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -2381,14 +2381,17 @@ DEFUN ("y-or-n-p", Fy_or_n_p, Sy_or_n_p, 1, 1, 0, | |||
| 2381 | Takes one argument, which is the string to display to ask the question.\n\ | 2381 | Takes one argument, which is the string to display to ask the question.\n\ |
| 2382 | It should end in a space; `y-or-n-p' adds `(y or n) ' to it.\n\ | 2382 | It should end in a space; `y-or-n-p' adds `(y or n) ' to it.\n\ |
| 2383 | No confirmation of the answer is requested; a single character is enough.\n\ | 2383 | No confirmation of the answer is requested; a single character is enough.\n\ |
| 2384 | Also accepts Space to mean yes, or Delete to mean no.\n\ | 2384 | Also accepts Space to mean yes, or Delete to mean no. \(Actually, it uses\n\ |
| 2385 | the bindings in query-replace-map; see the documentation of that variable\n\ | ||
| 2386 | for more information. In this case, the useful bindings are `act', `skip',\n\ | ||
| 2387 | `recenter', and `quit'.\)\n\ | ||
| 2385 | \n\ | 2388 | \n\ |
| 2386 | Under a windowing system a dialog box will be used if `last-nonmenu-event'\n\ | 2389 | Under a windowing system a dialog box will be used if `last-nonmenu-event'\n\ |
| 2387 | is nil.") | 2390 | is nil.") |
| 2388 | (prompt) | 2391 | (prompt) |
| 2389 | Lisp_Object prompt; | 2392 | Lisp_Object prompt; |
| 2390 | { | 2393 | { |
| 2391 | register Lisp_Object obj, key, def, answer_string, map; | 2394 | register Lisp_Object obj, key, def, map; |
| 2392 | register int answer; | 2395 | register int answer; |
| 2393 | Lisp_Object xprompt; | 2396 | Lisp_Object xprompt; |
| 2394 | Lisp_Object args[2]; | 2397 | Lisp_Object args[2]; |
| @@ -2442,7 +2445,6 @@ is nil.") | |||
| 2442 | 2445 | ||
| 2443 | key = Fmake_vector (make_number (1), obj); | 2446 | key = Fmake_vector (make_number (1), obj); |
| 2444 | def = Flookup_key (map, key, Qt); | 2447 | def = Flookup_key (map, key, Qt); |
| 2445 | answer_string = Fsingle_key_description (obj); | ||
| 2446 | 2448 | ||
| 2447 | if (EQ (def, intern ("skip"))) | 2449 | if (EQ (def, intern ("skip"))) |
| 2448 | { | 2450 | { |