Re: [O] babel completion notification

2014-03-18 Thread Eric Schulte
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

Re: [O] babel completion notification

2014-03-18 Thread Grant Rettke
The other options are prettier and the hook is more flexible; I had only cared about tangling though so I set this: (defadvice org-babel-tangle (before org-babel-tangle-before activate) (message (concat org-babel-tangle BEFORE: (format-time-string %Y-%m-%dT%T%z)

Re: [O] babel completion notification

2014-03-17 Thread Eric Schulte
Hi Ken, Ken Mankoff mank...@gmail.com 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

Re: [O] babel completion notification

2014-03-17 Thread Ken Mankoff
Hi Eric, On 2014-03-17 at 17:05, Eric Schulte wrote: Ken Mankoff mank...@gmail.com writes: 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

Re: [O] babel completion notification

2014-03-17 Thread Nick Dokos
Ken Mankoff mank...@gmail.com writes: Hi Eric, On 2014-03-17 at 17:05, Eric Schulte wrote: Ken Mankoff mank...@gmail.com writes: 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

Re: [O] babel completion notification

2014-03-17 Thread Nick Dokos
Eric Schulte schulte.e...@gmail.com writes: Nick Dokos ndo...@gmail.com writes: (popup.py is my homemade notifier) Try adding `(lambda () (shell-command-to-string popup.py babel done))' to your `org-babel-after-execute-hook'. I get the popup immediately and the results after 10 seconds.