From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Mundell Newsgroups: gmane.emacs.devel Subject: Re: y-or-n-p-with-timeout Date: Fri, 12 Nov 2004 17:04:15 +0000 Message-ID: <87r7mzroc0.fsf@sno.mundell.ukfsn.org> References: <87wtwyn8tf.fsf@confusibombus.example.org> <87fz3kt8on.fsf@sno.mundell.ukfsn.org> <87is8ezlen.fsf@sno.mundell.ukfsn.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100279092 13674 80.91.229.6 (12 Nov 2004 17:04:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2004 17:04:52 +0000 (UTC) Cc: emacs-devel@gnu.org, alex@emacswiki.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 12 18:04:39 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSeql-0002mZ-00 for ; Fri, 12 Nov 2004 18:04:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSezK-0002n4-1t for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2004 12:13:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSez8-0002mr-QR for emacs-devel@gnu.org; Fri, 12 Nov 2004 12:13:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSez8-0002mZ-5M for emacs-devel@gnu.org; Fri, 12 Nov 2004 12:13:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSez7-0002mW-Tt for emacs-devel@gnu.org; Fri, 12 Nov 2004 12:13:17 -0500 Original-Received: from [217.158.120.143] (helo=mail.ukfsn.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSeqS-0001uv-Ib; Fri, 12 Nov 2004 12:04:20 -0500 Original-Received: from localhost (lucy.ukfsn.org [127.0.0.1]) by mail.ukfsn.org (Postfix) with ESMTP id 42A38E6A8B; Fri, 12 Nov 2004 17:02:47 +0000 (GMT) Original-Received: from mail.ukfsn.org ([127.0.0.1]) by localhost (lucy.ukfsn.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13709-07; Fri, 12 Nov 2004 17:02:47 +0000 (GMT) Original-Received: from sno.mundell.ukfsn.org (dsl82-163-183-89.as15444.net [82.163.183.89]) by mail.ukfsn.org (Postfix) with ESMTP id F192BE6A89; Fri, 12 Nov 2004 17:02:46 +0000 (GMT) Original-Received: from sno.mundell.ukfsn.org ([10.0.0.3]) by sno.mundell.ukfsn.org with esmtp (Exim 3.36 #1 (Debian)) id 1CSeqP-0001LB-00; Fri, 12 Nov 2004 17:04:17 +0000 Original-To: rms@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29779 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29779 Richard Stallman 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)))))