From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Silent autoloading Date: Mon, 10 Nov 2008 17:05:41 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226354773 10392 80.91.229.12 (10 Nov 2008 22:06:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2008 22:06:13 +0000 (UTC) Cc: rgm@gnu.org, Lennart Borgman , michael.albinus@gmx.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 10 23:07:14 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kzeuc-0002sC-8g for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 23:07:10 +0100 Original-Received: from localhost ([127.0.0.1]:59023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzetU-0003VM-As for ged-emacs-devel@m.gmane.org; Mon, 10 Nov 2008 17:06:00 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KzetQ-0003V4-2h for emacs-devel@gnu.org; Mon, 10 Nov 2008 17:05:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KzetO-0003UX-GA for emacs-devel@gnu.org; Mon, 10 Nov 2008 17:05:55 -0500 Original-Received: from [199.232.76.173] (port=49300 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzetO-0003UU-Cm for emacs-devel@gnu.org; Mon, 10 Nov 2008 17:05:54 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:53055) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KzetH-0003rh-C5; Mon, 10 Nov 2008 17:05:47 -0500 Original-Received: from alfajor.home (vpn-132-204-232-123.acd.umontreal.ca [132.204.232.123]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id mAAM5fbX003242; Mon, 10 Nov 2008 17:05:41 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 526891C159; Mon, 10 Nov 2008 17:05:41 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Mon, 10 Nov 2008 22:11:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3144=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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: news.gmane.org gmane.emacs.devel:105544 Archived-At: >> > Maybe the right solution is to link this to the hourglass-mouse-cursor: >> > have a global variable busy-message, and when the >> > hourglass timer expires, not only we should change the mouse-cursor to >> > an hourglass, but we should also output the message currently stored in >> > `busy-message'. >> > This way, loading a file could set this var to "Loading ..." and if >> > the loading takes a while (and only in this case), you'd get the >> > relevant message. This would happen to work for autoloading as well as >> > for `require' and any other way to load a file. And it could be used >> > in other situations (e.g. "Building completion table..."). >> That would be good. > Except that, I think, it won't work on Windows, where atimer is not > supported. It has timers as well (e.g. those used for hourglass). I'd think that we would want to really integrate this directly within the hourglass code, i.e. consider it as another form of "hourglass icon". I.e hook into show_hourglass/hide_hourglass. > And what about Emacs on a tty, where there's no > hourglass-mouse-cursor? Indeed, currently Emacs on ttys doesn't use the hourglass timer because it has no way to display the hourglass mouse cursor, so this proposition would imply enabling it for ttys as well, where show_hourglass wouldn't actually show an hourglass-mouse-cursor, but would still show the busy-message. Stefan