From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Proposal for a new mechanism for delayed stuff Date: Wed, 26 Dec 2012 09:08:56 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ip7o7vnr.fsf@lifelogs.com> References: <87pq1y46ao.fsf@gnus.org> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356530999 24079 80.91.229.3 (26 Dec 2012 14:09:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Dec 2012 14:09:59 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 26 15:10:15 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TnrgU-0002FL-No for ged-emacs-devel@m.gmane.org; Wed, 26 Dec 2012 15:10:14 +0100 Original-Received: from localhost ([::1]:47230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnrgG-0007ua-8s for ged-emacs-devel@m.gmane.org; Wed, 26 Dec 2012 09:10:00 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnrgC-0007uU-W7 for emacs-devel@gnu.org; Wed, 26 Dec 2012 09:09:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tnrg7-0000LW-J5 for emacs-devel@gnu.org; Wed, 26 Dec 2012 09:09:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:38851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tnrg7-0000LS-CT for emacs-devel@gnu.org; Wed, 26 Dec 2012 09:09:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TnrgK-00027F-Di for emacs-devel@gnu.org; Wed, 26 Dec 2012 15:10:04 +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 ; Wed, 26 Dec 2012 15:10:04 +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 ; Wed, 26 Dec 2012 15:10:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 24 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:a7YVu5nZnsSDPFXnvbyVD3asjtU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155901 Archived-At: On Tue, 25 Dec 2012 14:20:31 +0100 Lars Ingebrigtsen wrote: LI> The idea I had yesterday was to make this totally general: (with-timeout-forms (progn (bla) (bla)) (1.5 (message "This is sure taking a lot of time...")) (10 (message "This is sure taking forever!"))) LI> A la condition-case and stuff, although here we have forms that are LI> run if the main form takes too long. So after 1.5 seconds we trigger LI> the first, and after 10 we trigger the second. I like it. LI> And perhaps it would also be possible to have a special thing in the LI> timeout forms that would conclude the entire main form? Like `return' LI> or something. You could use 'finally? Ted