From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: babel completion notification Date: Tue, 18 Mar 2014 08:32:17 -0600 Message-ID: <8738ifwpam.fsf@gmail.com> References: <87iorcwn6g.fsf@gmail.com> <87lhw8wkhz.fsf@alphaville.bos.redhat.com> <87eh20wbz0.fsf@gmail.com> <874n2w1azw.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48260) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPv69-0004xX-2d for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 10:34:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPv61-0004Pk-Ib for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 10:34:32 -0400 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:62651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPv61-0004PW-CG for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 10:34:25 -0400 Received: by mail-pd0-f171.google.com with SMTP id r10so7187854pdi.2 for ; Tue, 18 Mar 2014 07:34:23 -0700 (PDT) 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: Nick Dokos Cc: emacs-orgmode@gnu.org > However, there is a problem: > > --8<---------------cut here---------------start------------->8--- > #+name: notify > #+BEGIN_SRC emacs-lisp :results none > (shell-command "popup.py DONE") > #+END_SRC > > #+name: long-running > #+BEGIN_SRC shell :results output :post notify > sleep 5 > echo DONE > #+END_SRC > > #+RESULTS: long-running > : nil > --8<---------------cut here---------------end--------------->8--- > > The result seems to be the result of the notify block, not the > long-running one. Yes, that's how post blocks are supposed to work, they're normally used to post-process results. You should add a variable to the post block and have it return that variable, e.g., #+name: notify #+begin_src emacs-lisp :var data="" (shell-command "popup.py DONE") data #+end_src -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D