From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: When is hourglass shown? Date: Sat, 05 Mar 2005 19:24:15 +0200 Message-ID: <01c521a8$Blat.v2.4$4d2acc80@zahav.net.il> References: <42289C1F.7060709@swipnet.se> <01c52170$Blat.v2.4$97d80e60@zahav.net.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1110043894 29426 80.91.229.2 (5 Mar 2005 17:31:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2005 17:31:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 05 18:31:34 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D7d7c-00073F-OM for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2005 18:31:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7dQG-0000Od-Kr for ged-emacs-devel@m.gmane.org; Sat, 05 Mar 2005 12:50:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D7dPJ-0000EY-S7 for emacs-devel@gnu.org; Sat, 05 Mar 2005 12:49:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D7dPA-00008B-R5 for emacs-devel@gnu.org; Sat, 05 Mar 2005 12:49:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D7dP8-0008WL-Fo for emacs-devel@gnu.org; Sat, 05 Mar 2005 12:49:30 -0500 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D7d2z-00065K-Vi for emacs-devel@gnu.org; Sat, 05 Mar 2005 12:26:38 -0500 Original-Received: from zaretski (tony03-38-103.inter.net.il [80.230.38.103]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id DWM21559 (AUTH halo1); Sat, 5 Mar 2005 19:26:16 +0200 (IST) Original-To: "Jan D." X-Mailer: emacs 22.0.50 (via feedmail 8 I) and Blat ver 2.4 In-reply-to: (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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:34223 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34223 > Cc: emacs-devel@gnu.org > From: "Jan D." > Date: Sat, 5 Mar 2005 12:17:24 +0100 > > > I think the easiest way to find out whether the hourglass could be > > shown in the context of some function is to put a breakpoint on the > > place where the hourglass timer is set up. Then you will know if > > Emacs arranges for the hourglass even if the operation itself is fast > > enough so that no hourglass is actually shown before it finishes. > > > > (It might be necessary to change the default handling of SIGALRM by > > GDB, in order to run this under GDB.) > > This does not always work, as in the case of M-x indent-region versus > C-M-\. Both starts the hourglass timer, but the first stops it > directly afterwards. Actually, I think it did work very well: it shows you that the hourglass was armed, i.e. that Emacs _meant_ for it to appear if the operation took enough time. If you want to know why it didn't actually happen, an additional breakpoint where the timer is disabled would have shown you the code which did that.