From: Matthew Mundell <matt@mundell.ukfsn.org>
Cc: emacs-devel@gnu.org, alex@emacswiki.org
Subject: Re: y-or-n-p-with-timeout
Date: Fri, 12 Nov 2004 17:04:15 +0000 [thread overview]
Message-ID: <87r7mzroc0.fsf@sno.mundell.ukfsn.org> (raw)
In-Reply-To: E1CS5Px-000823-1e@fencepost.gnu.org
Richard Stallman <rms@gnu.org> 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)))))
next prev parent reply other threads:[~2004-11-12 17:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-06 15:19 y-or-n-p-with-timeout Richard Stallman
2004-11-06 17:24 ` y-or-n-p-with-timeout Jan D.
2004-11-07 18:04 ` y-or-n-p-with-timeout Richard Stallman
2004-11-06 18:14 ` y-or-n-p-with-timeout Alex Schroeder
2004-11-08 14:49 ` y-or-n-p-with-timeout Stefan
2004-11-09 11:14 ` y-or-n-p-with-timeout Richard Stallman
2004-11-09 23:16 ` y-or-n-p-with-timeout Luc Teirlinck
2004-11-11 3:14 ` y-or-n-p-with-timeout Richard Stallman
2004-11-11 9:20 ` y-or-n-p-with-timeout Jan D.
2004-11-12 7:05 ` y-or-n-p-with-timeout Richard Stallman
2004-11-08 19:58 ` y-or-n-p-with-timeout Matthew Mundell
2004-11-09 21:29 ` y-or-n-p-with-timeout Richard Stallman
2004-11-09 22:51 ` y-or-n-p-with-timeout Matthew Mundell
2004-11-11 3:14 ` y-or-n-p-with-timeout Richard Stallman
2004-11-12 17:04 ` Matthew Mundell [this message]
2004-11-13 16:37 ` y-or-n-p-with-timeout Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r7mzroc0.fsf@sno.mundell.ukfsn.org \
--to=matt@mundell.ukfsn.org \
--cc=alex@emacswiki.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.