bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#22922: 25.1.50; Wishlist: There should be a way to postpone messages


From: Eli Zaretskii
Subject: bug#22922: 25.1.50; Wishlist: There should be a way to postpone messages
Date: Sun, 06 Mar 2016 17:32:47 +0200

> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 06 Mar 2016 14:49:38 +0100
> 
> When doing stuff that takes an unknown amount of time, it would be handy
> to have a form like
> 
> (with-delayed-message "Contacting server..."
>   (contact-the-server))
> 
> If the body form completes within reasonable time (defined by
> `delayed-message-timeout', say 1 second), no message is displayed.  If
> more time than that passes, the message is displayed until the form
> exits.  This has to happen no matter what Emacs is doing -- blocking on
> DNS resolution, or running Emacs Lisp code.
> 
> When the body exits, the message (if it has been displayed) is cleared
> (and any previous message shown in the echo area is restored).

Would with-timeout fit the bill?





reply via email to

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