From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: babel completion notification Date: Mon, 17 Mar 2014 15:05:43 -0600 Message-ID: <87iorcwn6g.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPelJ-0002np-CW for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 17:08:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPelE-0004aI-8O for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 17:07:57 -0400 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:36395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPelE-0004aB-0e for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 17:07:52 -0400 Received: by mail-pd0-f173.google.com with SMTP id z10so6074961pdj.18 for ; Mon, 17 Mar 2014 14:07:51 -0700 (PDT) In-Reply-To: (Ken Mankoff's message of "Mon, 17 Mar 2014 16:33:47 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff Cc: Org-mode mailing list Hi Ken, Ken Mankoff writes: > I see from old emails to this list that asynchronous babel does not > exist and is non-trivial to implement. Yes, at least my initial attempts to implement this did not succeed (see line 100 of ob-comint.el), and I haven't had the time to revisit the issue. In actuality it may not be that much work to provide for asynchronous evaluation (at least in most cases). > Until asynchronous babel exists, it would be nice to at least be > notified when long-running tasks complete. Does anyone have advice how > to set up a hook on babel completion so that growl or some other > system notification alerts, perhaps only if the execution took more > than x seconds? > You can use the org-babel-after-execute-hook to run any action after a code block finishes executing. Best, > > Thanks, > > -k. > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D