Mercurial > emacs
comparison src/fns.c @ 112160:6bac5e026755
* src/fns.c (Fyes_or_no_p): Add usage.
author | Andreas Schwab <schwab@linux-m68k.org> |
---|---|
date | Sat, 08 Jan 2011 14:32:31 +0100 |
parents | 8d03223bf479 |
children | fd05a6b39a42 7df2e30d72ec |
comparison
equal
deleted
inserted
replaced
112159:038a93c74821 | 112160:6bac5e026755 |
---|---|
1 /* Random utility Lisp functions. | 1 /* Random utility Lisp functions. |
2 Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, | 2 Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, |
3 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4 2005, 2006, 2007, 2008, 2009, 2010 | 4 2005, 2006, 2007, 2008, 2009, 2010, 2011 |
5 Free Software Foundation, Inc. | 5 Free Software Foundation, Inc. |
6 | 6 |
7 This file is part of GNU Emacs. | 7 This file is part of GNU Emacs. |
8 | 8 |
9 GNU Emacs is free software: you can redistribute it and/or modify | 9 GNU Emacs is free software: you can redistribute it and/or modify |
2466 It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it. | 2466 It should end in a space; `yes-or-no-p' adds `(yes or no) ' to it. |
2467 The user must confirm the answer with RET, | 2467 The user must confirm the answer with RET, |
2468 and can edit it until it has been confirmed. | 2468 and can edit it until it has been confirmed. |
2469 | 2469 |
2470 Under a windowing system a dialog box will be used if `last-nonmenu-event' | 2470 Under a windowing system a dialog box will be used if `last-nonmenu-event' |
2471 is nil, and `use-dialog-box' is non-nil. */) | 2471 is nil, and `use-dialog-box' is non-nil. |
2472 usage: (yes-or-no-p PROMPT &rest ARGS) */) | |
2472 (int nargs, Lisp_Object *args) | 2473 (int nargs, Lisp_Object *args) |
2473 { | 2474 { |
2474 register Lisp_Object ans; | 2475 register Lisp_Object ans; |
2475 struct gcpro gcpro1; | 2476 struct gcpro gcpro1; |
2476 Lisp_Object prompt = Fformat (nargs, args); | 2477 Lisp_Object prompt = Fformat (nargs, args); |