emacs-devel
[Top][All Lists]
Advanced

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

Re: Proposal for a new mechanism for delayed stuff


From: Lars Magne Ingebrigtsen
Subject: Re: Proposal for a new mechanism for delayed stuff
Date: Mon, 31 Dec 2012 15:09:55 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> (with-timeout-forms
>>    (progn
>>      (bla)
>>      (bla))
>>   (1.5 (message "This is sure taking a lot of time..."))
>>   (10 (message "This is sure taking forever!")))
>
> Maybe an alternative would be a `current-state-message' global variable,
> which is then displayed once per second that Emacs is busy.

Sure, that would also handle the "tell the user what's going on" use
case, and we could have a convenience macro `with-current-state-message'
that would simply be an `unwind-protect' to clear out the state message.

But `with-timeout-form' would be kinda generally useful, I think.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



reply via email to

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