From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] make export dispatcher go away promptly Date: Fri, 4 Feb 2011 20:02:38 +0100 (CET) Message-ID: <20110204190238.EB5E18786@myhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=56908 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlQvY-0000rs-7R for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 14:02:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlQvV-0000qg-LY for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 14:02:38 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:49218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlQvV-0000qN-EY for emacs-orgmode@gnu.org; Fri, 04 Feb 2011 14:02:37 -0500 Received: by wwb17 with SMTP id 17so2638434wwb.30 for ; Fri, 04 Feb 2011 11:02:36 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Patch 582 (http://patchwork.newartisans.com/patch/582/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3Cm1oc6rq1q8.fsf%40gmail.com%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] make export dispatcher go away promptly > Date: Fri, 04 Feb 2011 20:05:35 -0000 > From: Dan Davison > X-Patchwork-Id: 582 > Message-Id: > To: emacs-orgmode@gnu.org > > 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 > > > diff --git a/lisp/org-exp.el b/lisp/org-exp.el > index 13fa549..3d291e2 100644 > --- a/lisp/org-exp.el > +++ b/lisp/org-exp.el > @@ -963,6 +963,7 @@ value of `org-export-run-in-background'." > (setq r1 (read-char-exclusive))) > (error "No enclosing node with LaTeX_CLASS or EXPORT_FILE_NAME") > ))))) > + (redisplay) > (and bpos (goto-char bpos)) > (setq r2 (if (< r1 27) (+ r1 96) r1)) > (unless (setq ass (assq r2 cmds)) >