From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-mode html export background/foreground inconsistency Date: Fri, 20 May 2016 16:14:58 -0400 Message-ID: <87wpmobi65.fsf@alphaville.usersys.redhat.com> References: <1463603559.1341236.611901009.6797C077@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3qpg-0007mV-6R for emacs-orgmode@gnu.org; Fri, 20 May 2016 16:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3qpA-0003lb-Tn for emacs-orgmode@gnu.org; Fri, 20 May 2016 16:15:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:39901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3qpA-0003kh-NH for emacs-orgmode@gnu.org; Fri, 20 May 2016 16:15:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b3qp7-0005JQ-PM for emacs-orgmode@gnu.org; Fri, 20 May 2016 22:15:05 +0200 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2016 22:15:05 +0200 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2016 22:15:05 +0200 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" To: emacs-orgmode@gnu.org lad writes: > I attempted to follow this blog to enable a background html export on > org file save: > > http://stephanus-volke.de/posts/2015/Dez/22/org-mode-live-preview-en/ > > I tried adding the following to the top of the org file: > > # -*- after-save-hook: org-html-export-to-html; > org-export-in-background: t; -*- > > by the way I also tried: > > -*- after-save-hook: org-html-export-to-html; > org-export-in-background: t; -*- > > I even tried the following which I thought would work since I'm setting > the optional ASYNC variable to true: > > #-*- after-save-hook: (org-html-export-to-html t); > org-export-in-background: t; -*- > > For each test I tried I quit emacs and reopened to org file fresh. I was > prompted to accept some security settings and chose "y" so the variable > org-export-in-background is set correctly. The funny thing is when I go > through (C-c C-e h o) the export goes to the background, otherwise when > I save the file it happens in the foreground (which freezes emacs for > some time). :( > > Running: > > Org-mode version 8.3.4 (8.3.4-50-g83e373-elpa) > GNU Emacs 25.1.50.1 > > I'm not sure if this is correct behavior? Thank you in advance for any > insight or suggestions you may have. > I tried it and it works for me, so I suspect that org-export-in-background is just not implemented in the stable release (based on the maint branch of the git repo - the elpa releases come from that branch), but *is* implemented in master (which is what I use). If that is correct, your options are to wait until version 9.0 is released, or to use the master branch of the git repo, with the possible bugs/instabilities that that might entail. -- Nick