make export dispatcher go away promptly
commit123f3b774c774ce7b6cc7875f7e2ae596deabc37
authorDan Davison <dandavison7@gmail.com>
Fri, 4 Feb 2011 20:05:35 +0000 (4 20:05 +0000)
committerBastien Guerry <bzg@altern.org>
Fri, 4 Feb 2011 19:02:26 +0000 (4 20:02 +0100)
tree24164383c22969902f46888a709d8d05b520b1f7
parenta9d2e4240a9e30537fc5a53dc352db34bb56a92b
make export dispatcher go away promptly

Following on from Stephen's recent post, a
thing-that-slightly-bothers-me is the way the export dispatcher window
doesn't go away until export is complete. I've briefly looked at the
code twice now and it wasn't obvious to me why the save-window-excursion
(line 941 org-exp.el) wasn't already doing what I wanted. However, the
change below seems to have the effect I wanted. While this particular
solution may be a hack, I wonder whether people would prefer its
behaviour? E.g. try exporting this:

#+title: title

#+begin_src sh :exports results
sleep 5 && echo hello
#+end_src

export can often take several seconds and it's nice to be able to zone
out looking at your org document rather than the dispatcher window.

Modified lisp/org-exp.el

(I see that (sit-for .0001) is used in a couple of places in Org for
this effect, so maybe that should be used instead.)

Dan
lisp/org-exp.el