From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: async export not working for me Date: Wed, 17 Sep 2014 19:03:27 +0200 Message-ID: <87wq92ch7k.fsf@gmx.us> References: <87bnqe6ytz.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUIe6-0005SU-2c for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 13:04:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUIdz-00011A-12 for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 13:03:58 -0400 Received: from plane.gmane.org ([80.91.229.3]:33902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUIdy-00010p-QE for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 13:03:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XUIdn-0007q0-3X for emacs-orgmode@gnu.org; Wed, 17 Sep 2014 19:03:39 +0200 Received: from 46.166.186.217 ([46.166.186.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Sep 2014 19:03:39 +0200 Received: from rasmus by 46.166.186.217 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Sep 2014 19:03:39 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Julien, Julien Cubizolles writes: > I'm running org-mode 8.3beta from org-plus-contrib in melpa. I must have > missed something obvious cause I could never get async export working. > > Here is what I do: > emacs -Q > (require 'package) > (package-initialize) ;; since org is installed by package > > > create a test.org file with only > > * First Heading > * Second Heading > > run > > C-c > C-a ;; in the export dispatcher > l > p > > I get: > > Initializing asynchronous export process > org-export-to-file: Wrong type argument: stringp, nil > > the synchronous export works fine. > > If I run emacs with my regular config files, I get: > Initializing asynchronous export process > Process 'org-export-process' exited abnormally > > different error message but still not ok. > > What could possibly go wrong ? Probably you are somehow not loading settings "correctly". In your normal init file you need to set `org-export-async-init-file'. In that file you then need to make sure everything is working as expected. On way to debug is to start from emacs -q, load `org-export-async-init-file' and see what error you expect. I set `org-export-async-init-file' like the following snippet. It's "complicated" because my init-org-async.el loads a subset of my init file. (eval-after-load 'ox ;; shouldn't be byte compiled. '(when (and user-init-file (buffer-file-name)) ;; don't do it in async (setq org-export-async-init-file (expand-file-name "init-org-async.el" (file-name-directory user-init-file))))) Here's my init file for async export. Perhaps you will find a trick that makes your files export async there. ;; initialization file for org async. ;; Note that in my init.el I use ;; orgstruct with headlines like: ;; ;;* PRE ;; ... ;; ;;* ORG ;; ... (defun read-between-headlines (start &optional end file) "Read a part of the init file. Give a START regexp to find the start point and optionally an end regexp." (save-match-data (let ((file (or file (expand-file-name "init.el" user-emacs-directory))) (end (or end "^;+ ?\\*\\*? ?[A_Za-z0-9]+")) (case-fold-search t) m1 m2) (with-temp-buffer (insert-file file) (goto-char (point-min)) (search-forward-regexp start) (setq m1 (point)) (search-forward-regexp "^;+ ?\\*\\*? ?[A_Za-z0-9]+") (setq m2 (point)) (eval-region m1 m2))))) (mapc (lambda (x) (add-to-list 'load-path x)) `("/usr/share/emacs/site-lisp/org" "/usr/share/emacs/site-lisp/org_contrib/lisp" ,(expand-file-name "lisp" user-emacs-directory))) (setq user-full-name "Rasmus") (setq user-mail-address "rasmus@gmx.us") (require 'org) ;; loads from site lisp (require 'ox) (require 'cl) ;; stupid bug in one of the org-packages? (setq org-export-async-debug nil) (mapc (lambda (x) (read-between-headlines (concat ";+ ?\\*+ ?" x))) '("PRE" "ORG")) ;; from http://sachachua.com/notebook/emacs/dotemacs.el (defun ask-user-about-lock (file opponent) "Always steal lock." t) Hope it helps, Rasmus -- Lasciate ogni speranza o voi che entrate: siete nella mani di'machellaio