From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82659 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Fetching all messages into the Agent Date: Sat, 22 Dec 2012 21:18:24 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fw2xecjz.fsf@lifelogs.com> References: <871uliwchp.fsf@ucl.ac.uk> <85aa06ugf7.fsf@iznogoud.viz> <87zk84a8ho.fsf@ucl.ac.uk> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356229138 22034 80.91.229.3 (23 Dec 2012 02:18:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2012 02:18:58 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30925@lists.math.uh.edu Sun Dec 23 03:19:14 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tmb9k-0008B9-6o for ding-account@gmane.org; Sun, 23 Dec 2012 03:19:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Tmb9M-0000HQ-EL; Sat, 22 Dec 2012 20:18:48 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Tmb9L-0000H9-4s for ding@lists.math.uh.edu; Sat, 22 Dec 2012 20:18:47 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Tmb9G-0006wN-Sx for ding@lists.math.uh.edu; Sat, 22 Dec 2012 20:18:47 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Tmb9F-0004cf-FZ for ding@gnus.org; Sun, 23 Dec 2012 03:18:41 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Tmb9Q-0007ra-3f for ding@gnus.org; Sun, 23 Dec 2012 03:18:52 +0100 Original-Received: from c-65-96-148-157.hsd1.ma.comcast.net ([65.96.148.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Dec 2012 03:18:52 +0100 Original-Received: from tzz by c-65-96-148-157.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 23 Dec 2012 03:18:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-65-96-148-157.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:yY6AhhusFvJ5c7iTj/pYiywzGfE= X-Spam-Score: -0.4 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82659 Archived-At: On Wed, 20 Jun 2012 20:33:57 +0200 Lars Magne Ingebrigtsen 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