comparison src/fns.c @ 24280:40703a998d73

(Fyes_or_no_p, Fy_or_n_p): Doc fix.
author Dave Love <fx@gnu.org>
date Mon, 08 Feb 1999 13:59:24 +0000
parents e30a84ad7aa0
children c56b72e5f29d
comparison
equal deleted inserted replaced
24279:7334c513dc7d 24280:40703a998d73
1 /* Random utility Lisp functions. 1 /* Random utility Lisp functions.
2 Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 1998 Free Software Foundation, Inc. 2 Copyright (C) 1985, 86, 87, 93, 94, 95, 97, 98, 1999 Free Software Foundation, Inc.
3 3
4 This file is part of GNU Emacs. 4 This file is part of GNU Emacs.
5 5
6 GNU Emacs is free software; you can redistribute it and/or modify 6 GNU Emacs is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
2374 DEFUN ("y-or-n-p", Fy_or_n_p, Sy_or_n_p, 1, 1, 0, 2374 DEFUN ("y-or-n-p", Fy_or_n_p, Sy_or_n_p, 1, 1, 0,
2375 "Ask user a \"y or n\" question. Return t if answer is \"y\".\n\ 2375 "Ask user a \"y or n\" question. Return t if answer is \"y\".\n\
2376 Takes one argument, which is the string to display to ask the question.\n\ 2376 Takes one argument, which is the string to display to ask the question.\n\
2377 It should end in a space; `y-or-n-p' adds `(y or n) ' to it.\n\ 2377 It should end in a space; `y-or-n-p' adds `(y or n) ' to it.\n\
2378 No confirmation of the answer is requested; a single character is enough.\n\ 2378 No confirmation of the answer is requested; a single character is enough.\n\
2379 Also accepts Space to mean yes, or Delete to mean no.") 2379 Also accepts Space to mean yes, or Delete to mean no.\n\
2380 \n\
2381 Under a windowing system a dialog box will be used if `last-nonmenu-event'\n\
2382 is nil.")
2380 (prompt) 2383 (prompt)
2381 Lisp_Object prompt; 2384 Lisp_Object prompt;
2382 { 2385 {
2383 register Lisp_Object obj, key, def, answer_string, map; 2386 register Lisp_Object obj, key, def, answer_string, map;
2384 register int answer; 2387 register int answer;
2504 DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, 1, 0, 2507 DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, 1, 0,
2505 "Ask user a yes-or-no question. Return t if answer is yes.\n\ 2508 "Ask user a yes-or-no question. Return t if answer is yes.\n\
2506 Takes one argument, which is the string to display to ask the question.\n\ 2509 Takes one argument, which is the string to display to ask the question.\n\
2507 It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it.\n\ 2510 It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it.\n\
2508 The user must confirm the answer with RET,\n\ 2511 The user must confirm the answer with RET,\n\
2509 and can edit it until it has been confirmed.") 2512 and can edit it until it has been confirmed.\n\
2513 \n\
2514 Under a windowing system a dialog box will be used if `last-nonmenu-event'\n\
2515 is nil.")
2510 (prompt) 2516 (prompt)
2511 Lisp_Object prompt; 2517 Lisp_Object prompt;
2512 { 2518 {
2513 register Lisp_Object ans; 2519 register Lisp_Object ans;
2514 Lisp_Object args[2]; 2520 Lisp_Object args[2];