From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: alarm_signal_handler is called too frequently Date: Wed, 03 Nov 2004 12:04:03 -0500 Message-ID: References: <7E7ABFB6-2693-11D9-9BC4-000D93505B76@swipnet.se> <41813425.2010001@swipnet.se> <4181EA7E.2020309@swipnet.se> <4185FC85.70100@swipnet.se> <41880288.2070706@swipnet.se> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1099501637 10607 80.91.229.6 (3 Nov 2004 17:07:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2004 17:07:17 +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 Wed Nov 03 18:07:12 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 1CPObI-0005XJ-00 for ; Wed, 03 Nov 2004 18:07:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPOjO-0001ES-Nb for ged-emacs-devel@m.gmane.org; Wed, 03 Nov 2004 12:15:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CPOhs-0000hI-5O for emacs-devel@gnu.org; Wed, 03 Nov 2004 12:14:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CPOhp-0000fz-Uo for emacs-devel@gnu.org; Wed, 03 Nov 2004 12:13:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CPOhp-0000dp-Jc for emacs-devel@gnu.org; Wed, 03 Nov 2004 12:13:57 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CPOZh-00041B-OL for emacs-devel@gnu.org; Wed, 03 Nov 2004 12:05:33 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1CPOYF-0005kX-AB; Wed, 03 Nov 2004 12:04:03 -0500 Original-To: "Jan D." In-reply-to: <41880288.2070706@swipnet.se> (jan.h.d@swipnet.se) 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:29400 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29400 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. I think we either should implement y-or-n-p-with-timeout correctly or give up on doing so. If we give up, we should mark it obsolete now. Which do people think we should do? 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. Are you thinking of the menu bar? I think this code is concerned only with popup menus; they are invoked with x-popup-menu, which is analogous to x-popup-dialog. So it has nothing to do with KeyPress.