all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rgm@gnu.org, Lennart Borgman <lennart.borgman@gmail.com>,
	michael.albinus@gmx.de, emacs-devel@gnu.org
Subject: Re: Silent autoloading
Date: Mon, 10 Nov 2008 17:05:41 -0500	[thread overview]
Message-ID: <jwvr65jnsyt.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <u4p2fqr32.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 Nov 2008 22:11:13 +0200")

>> > 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 <foo>..." 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




  parent reply	other threads:[~2008-11-10 22:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-08 12:30 Silent autoloading Eli Zaretskii
2008-11-08 21:34 ` Glenn Morris
2008-11-08 22:54   ` Eli Zaretskii
2008-11-09  2:22     ` Stefan Monnier
2008-11-09  4:20       ` Eli Zaretskii
2008-11-09 15:06         ` Stefan Monnier
2008-11-09 18:54           ` Eli Zaretskii
2008-11-10  1:51             ` Stefan Monnier
2008-11-10  8:37               ` Lennart Borgman
2008-11-10 20:11                 ` Eli Zaretskii
2008-11-10 20:19                   ` Lennart Borgman
2008-11-11  4:18                     ` Eli Zaretskii
2008-11-10 22:05                   ` Stefan Monnier [this message]
2008-11-16 14:34               ` Michael Albinus
2008-11-16 19:02                 ` Stefan Monnier
2008-11-09 11:13       ` Andreas Schwab
2008-11-09 15:04         ` Stefan Monnier
2008-11-17  5:01           ` Michael Albinus
2008-11-17 14:46             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvr65jnsyt.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    --cc=michael.albinus@gmx.de \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.