From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Hourglass - how is it started and ended? Date: Sun, 27 Feb 2005 01:25:20 +0100 Message-ID: <001101c51c62$dba84d20$0200a8c0@sedrcw11488> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109464723 13296 80.91.229.2 (27 Feb 2005 00:38:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Feb 2005 00:38:43 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 27 01:38:43 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D5CRZ-0008Tk-SV for ged-emacs-devel@m.gmane.org; Sun, 27 Feb 2005 01:37:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5Cjd-0000ZH-6v for ged-emacs-devel@m.gmane.org; Sat, 26 Feb 2005 19:56:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D5Ccv-0003cP-Pa for emacs-devel@gnu.org; Sat, 26 Feb 2005 19:49:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D5Ccd-0003Ti-JY for emacs-devel@gnu.org; Sat, 26 Feb 2005 19:49:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D5Ccc-0003Po-Te for emacs-devel@gnu.org; Sat, 26 Feb 2005 19:49:23 -0500 Original-Received: from [81.228.11.115] (helo=av9-1-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D5CGH-0000Rg-0b for emacs-devel@gnu.org; Sat, 26 Feb 2005 19:26:17 -0500 Original-Received: by av9-1-sn1.fre.skanova.net (Postfix, from userid 502) id D580B37E67; Sun, 27 Feb 2005 01:26:14 +0100 (CET) Original-Received: from smtp3-1-sn1.fre.skanova.net (smtp3-1-sn1.fre.skanova.net [81.228.11.163]) by av9-1-sn1.fre.skanova.net (Postfix) with ESMTP id C583F37E58 for ; Sun, 27 Feb 2005 01:26:14 +0100 (CET) Original-Received: from sedrcw11488 (t5o58p22.telia.com [195.67.196.22]) by smtp3-1-sn1.fre.skanova.net (Postfix) with SMTP id 450FD37E42 for ; Sun, 27 Feb 2005 01:26:12 +0100 (CET) Original-To: "Emacs Devel" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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:33856 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33856 I got a bit irritated that Emacs did not stop to show an hourglass after an operation ended so I looked into the code. However while trying to find the code for this I first stumbled on some other problems. I have some difficulties to understand the code for starting the hourglass cursor: 1) There is a function start_hourglass. This starts a timer that turns on the hourglass. The function start_hourglass begins with cancel_hourglass which cancels the timer if it is already active and removes the hourglass if it is shown. Why is it useful to begin with this? I would expect start_hourglass to just do nothing if the hourglass was already shown (and perhaps also if the timer was active). Can anyone please explain this? 2) In w32fns.c start_hourglass has a "#if 0" around the whole body part. Is this actually run?? (The hourglass is shown on w32.)