emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When is hourglass shown?


From: Eli Zaretskii
Subject: Re: When is hourglass shown?
Date: Sat, 05 Mar 2005 19:24:15 +0200

> Cc: address@hidden
> From: "Jan D." <address@hidden>
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]