Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: Fetching all messages into the Agent
Date: Sat, 22 Dec 2012 21:18:24 -0500	[thread overview]
Message-ID: <87fw2xecjz.fsf@lifelogs.com> (raw)
In-Reply-To: <m3wr31rfxm.fsf@stories.gnus.org>

On Wed, 20 Jun 2012 20:33:57 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> During the Emacs 24.2 cycle I hope to implement `maybe-message' (or
LMI> something) that will allow us a convenient way to message stuff if
LMI> things take too long.

LMI> (maybe-message 1.0 "Fetching group foo...")

LMI> If Emacs hasn't returned to the idle loop before one second has passed,
LMI> then the message is displayed.  That way we'll only show a message if it
LMI> turns out that the function took a long while to complete.

May I suggest a macro like (with-timeout-message TIMEOUT MESSAGE BODY)?

That's much more useful because you can time any body or function.  We
already have `with-timeout' in timer.el but that actually aborts the
code.  Still, maybe you can use its ideas.

Thanks
Ted




  parent reply	other threads:[~2012-12-23  2:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13 14:01 Richard Riley
2012-06-14  7:57 ` Robert Pluim
2012-06-14  7:58 ` Eric S Fraga
2012-06-14 10:17   ` Tassilo Horn
2012-06-14 14:17   ` Wolfgang Jenkner
2012-06-14 15:45     ` Eric S Fraga
2012-06-14 17:41       ` Wolfgang Jenkner
2012-06-14 16:04     ` Tassilo Horn
2012-06-15 15:27       ` Eric S Fraga
2012-06-15 15:40     ` Eric S Fraga
2012-06-20 18:33       ` Lars Magne Ingebrigtsen
2012-06-21  8:37         ` Eric S Fraga
2012-06-21 11:33         ` Richard Riley
2012-06-21 15:35           ` Vagn Johansen
2012-12-23  2:18         ` Ted Zlatanov [this message]
2012-12-24 20:30           ` Lars Ingebrigtsen
2012-12-24 20:34           ` Lars Ingebrigtsen

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=87fw2xecjz.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).