unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rgm@gnu.org, michael.albinus@gmx.de, emacs-devel@gnu.org
Subject: Re: Silent autoloading
Date: Sun, 09 Nov 2008 20:51:06 -0500	[thread overview]
Message-ID: <jwvk5bcpdeg.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <ufxm0raq3.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 Nov 2008 20:54:44 +0200")

>> > Maybe Tramp is a large package, but then "C-x C-f" is a very
>> > frequently used command.
>> Ah, yes, I see that for Tramp indeed.
>> How 'bout making Tramp output something before loading itself?
> I don't mind, but are we going to hunt down every slow-loading package
> and add a message to them as well?

> Why not the other way around: re-enable the "Loading..." messages by
> default and introduce a variable to suppress it?  Then Lisp code that
> needed this to be turned off (something with timers, IIUC) could
> simply bind that variable to an appropriate value when doing
> its thing.

No Lisp code needs it to be turned off.  It's just off because there's
no clear reason to have it turned on in most cases, and in some cases
those messages are annoying.

You're complaining about Emacs freezing for a little while without
giving any clue to the user about what's going on.  That's indeed
a problem.  But this rarely happens for autoloading, and in many cases
it happens independently from autoloading.

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


        Stefan




  reply	other threads:[~2008-11-10  1:51 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 [this message]
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
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvk5bcpdeg.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).