# HG changeset patch # User Richard M. Stallman # Date 838137032 0 # Node ID b913a75fddee8619e90c6800a2a5cc4300dec13e # Parent 039b338d9656e0528ddd00fccc983b62e200352e Add y-or-n-p-with-timeout. diff -r 039b338d9656 -r b913a75fddee lispref/minibuf.texi --- a/lispref/minibuf.texi Tue Jul 23 15:50:08 1996 +0000 +++ b/lispref/minibuf.texi Tue Jul 23 15:50:32 1996 +0000 @@ -1174,6 +1174,13 @@ 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},