emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: y-or-n-p-with-timeout


From: Matthew Mundell
Subject: Re: y-or-n-p-with-timeout
Date: Fri, 12 Nov 2004 17:04:15 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     >     Type-break mode with fixed-length periods between breaks could use
>     >     such a function to prompt the user to take a break.  That way if the
>     >     user returns to the machine after an extended period away, then any
>     >     prompting will, correctly, be gone.
>     >
>     > Would we want type-break mode to use a dialog box?
>
>     The same situation would then be a case for the dialog box to time
>     out.  Using a dialog box would require an alternative for terminal
>     display.
>
> We're failing to communicate.  The question is whether this is
> a real example of wanting to use a dialog box.

So this question is separate from y-or-n-p-with-timeout?

> Do we really want type-break to use a dialog box?

A dialog makes the prompt more aggressive, by covering some of the
frame.  It also requires the use of the mouse, to respond to the
prompt.

> Does type-break now use a dialog box?

It uses the value of `type-break-query-function', which is set to
`yes-or-no-p'.

It can be customised to use a dialog box, for example as follows.

(setq type-break-query-function
          (lambda (msg)
                (x-popup-dialog t `(,msg ("yes" . t) ("no" . nil)))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]