diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-07-23 15:50:32 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-07-23 15:50:32 +0000 |
commit | 07e8ed1ce1454a5a17b1f4869d8e93175857019d (patch) | |
tree | 75f9fa31216e36bb27cf7da2e2e08d950abdb54d | |
parent | 2b78ab95054bb8d710669ff5302eaef88e7cf3e0 (diff) | |
download | emacs-07e8ed1ce1454a5a17b1f4869d8e93175857019d.tar.gz |
Add y-or-n-p-with-timeout.
-rw-r--r-- | lispref/minibuf.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lispref/minibuf.texi b/lispref/minibuf.texi index b4fd597f496..380cbca3aa3 100644 --- a/lispref/minibuf.texi +++ b/lispref/minibuf.texi @@ -1174,6 +1174,13 @@ We show successive lines of echo area messages, but only one actually appears on the screen at a time. @end defun +@defun y-or-n-p-with-timeout prompt seconds default-value +Like @code{y-or-n-p}, except that if the user fails to answer within +@var{seconds} seconds, this function stops waiting and returns +@var{default-value}. It works by setting up a timer; see @ref{Timers}. +The argument @var{seconds} may be an integer or a floating point number. +@end defun + @defun yes-or-no-p prompt This function asks the user a question, expecting input in the minibuffer. It returns @code{t} if the user enters @samp{yes}, |