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: alarm_signal_handler is called too frequently Date: Tue, 02 Nov 2004 22:56:24 +0100 Message-ID: <41880288.2070706@swipnet.se> References: <7E7ABFB6-2693-11D9-9BC4-000D93505B76@swipnet.se> <41813425.2010001@swipnet.se> <4181EA7E.2020309@swipnet.se> <4185FC85.70100@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1099432660 12537 80.91.229.6 (2 Nov 2004 21:57:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Nov 2004 21:57:40 +0000 (UTC) Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 02 22:57:26 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 1CP6ec-0006Fq-00 for ; Tue, 02 Nov 2004 22:57:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CP6mg-0006j7-KK for ged-emacs-devel@m.gmane.org; Tue, 02 Nov 2004 17:05:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CP6mY-0006ij-2U for emacs-devel@gnu.org; Tue, 02 Nov 2004 17:05:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CP6mX-0006iQ-4w for emacs-devel@gnu.org; Tue, 02 Nov 2004 17:05:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CP6mX-0006iN-22 for emacs-devel@gnu.org; Tue, 02 Nov 2004 17:05:37 -0500 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CP6e8-0005Hx-1f; Tue, 02 Nov 2004 16:56:56 -0500 Original-Received: from coolsville.localdomain ([83.226.180.220] [83.226.180.220]) by mxfep02.bredband.com with ESMTP id <20041102215654.MNU44.mxfep02.bredband.com@coolsville.localdomain>; Tue, 2 Nov 2004 22:56:54 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040916 X-Accept-Language: en-us, en Original-To: rms@gnu.org In-Reply-To: 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:29340 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29340 Richard Stallman wrote: > I can't say why the do_timer argument is different, the modification was made > by you almost 2 years ago: > > Judging by the date when I made the change, I was probably looking at > bug reports saved up from the previous months. I didn't mail the > patch to anyone at the time. > > Perhaps it has to do with y-or-n-p-with-timeout. > Can that operate with a dialog? If so, it now won't work > correctly; the timeout will be ignored. We could make > the timeout work once again using some other mechanism, > I guess. y-or-n-p-with-timeout will pop up a dialog when invoked with the mouse (i.e. tool or menu bar). And yes, it will not time out. It never did for GTK or Mac OSX BTW, as they do not process timers if a dialog is popped up. Currently there are no such menu or tool bar entries, but I guess other packages may add such an item. But I was wondering if the differences in how dialogs and menus are invoked may make a difference. A menu is invoked as a result of a KeyPress, which arrives in the signal handler. But a dialog is always popped up by lisp code, not directly from the signal handler. Does this matter? Jan D.