From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: y-or-n-p-with-timeout Date: Sat, 6 Nov 2004 18:24:57 +0100 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1099774925 24517 80.91.229.6 (6 Nov 2004 21:02:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Nov 2004 21:02:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 06 22:01:56 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 1CQXh6-0002M0-00 for ; Sat, 06 Nov 2004 22:01:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQXpM-0004yj-Tm for ged-emacs-devel@m.gmane.org; Sat, 06 Nov 2004 16:10:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CQXoT-0004hd-A4 for emacs-devel@gnu.org; Sat, 06 Nov 2004 16:09:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CQXoQ-0004gH-Lf for emacs-devel@gnu.org; Sat, 06 Nov 2004 16:09:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQXoQ-0004eE-7A for emacs-devel@gnu.org; Sat, 06 Nov 2004 16:09:30 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CQXfX-0005C3-Hr; Sat, 06 Nov 2004 16:00:19 -0500 Original-Received: from [195.54.107.70] (helo=mxfep01.bredband.com) by mx20.gnu.org with esmtp (Exim 4.34) id 1CQUOb-0004Fp-2a; Sat, 06 Nov 2004 12:30:37 -0500 Original-Received: from coolsville.localdomain ([83.226.180.220] [83.226.180.220]) by mxfep01.bredband.com with ESMTP id <20041106172505.RWKW4883.mxfep01.bredband.com@coolsville.localdomain>; Sat, 6 Nov 2004 18:25:05 +0100 In-Reply-To: Original-To: rms@gnu.org X-Mailer: Apple Mail (2.619) 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:29486 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29486 > The question is whether to make y-or-n-p-with-timeout work correctly > or to declare it obsolete. We could make it work using some other > timeout mechanism that can't run Lisp code. Actually, I took this as an OK to revert the change about timer handling in popup_get_selection: > From: Richard Stallman > To: storm@cua.dk (Kim F. Storm) > Date: Sat, 06 Nov 2004 00:22:41 -0500 > Cc: jan.h.d@swipnet.se, mituharu@math.s.chiba-u.ac.jp, > emacs-devel@gnu.org > Subject: Re: alarm_signal_handler is called too frequently > Why is it unsafe to Feval with input blocked? > > I thought that this was not handled at all, and wouldn't have a chance > of working right. But I can't find a reason now why it won't work. Only Xt-based Emacs (Lucid/Motif/Lesstif) handle y-or-n-p-with-timeout, but I'm sure it can be done for the other X based versions. Mac and W32 also doesn't timeout on y-or-n-p-with-timeout when a dialog is used. Jan D.