From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: try-this-for ? Date: Wed, 17 Jan 2018 22:04:36 +0100 Organization: Aioe.org NNTP Server Message-ID: <86lggw6vtn.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1516223044 16407 195.159.176.226 (17 Jan 2018 21:04:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 Jan 2018 21:04:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 17 22:04:00 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eburp-0002LL-Jt for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jan 2018 22:03:29 +0100 Original-Received: from localhost ([::1]:33958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebutn-0004gg-Qo for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jan 2018 16:05:31 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!nzgate1.xs4all.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: zRXoCvQ6k9fneBfYPnB6lQ.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:Wl4pILusblHCvEOc1F72fJZ75Tc= Mail-Copies-To: never X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:221645 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115762 Archived-At: Is there something like this: (try-this-for SECONDS BODY) If BODY hasn't completed after SECONDS, everything will be aborted, i.e. the equivalence of `keyboard-quit' (or whatever appropriate). But what has already happened until the point of abortion don't have to be rolled back or any state restored or dumped or anything like that. If BODY do complete before SECONDS it should be transparent in the sense that what should be returned is the final evaluation of BODY. -- underground experts united http://user.it.uu.se/~embe8573