I'm trying to get a very minimal example of async export working.
Can you help me? I'm running out of ideas.
TIA
WindowsXP-SP3, Emacs 24.3, Org [8.2.1 (release_8.2.1-134-g8b264d @
c:/org-mode/lisp/)]
#+BEGIN_SRC command-line
emacs -Q -l minimal-org.el
#+END_SRC
#+BEGIN_SRC minimal-org.el
;;; Minimal setup to load latest `org-mode'
;; activate debugging
(setq debug-on-error t
debug-on-signal nil
debug-on-quit nil)
;; add latest org-mode to load path
(add-to-list 'load-path (expand-file-name "c:/org-mode/lisp"))
#+END_SRC
#+BEGIN_SRC minimal.org
* Hello world
How things are going?
#+END_SRC
#+BEGIN_SRC keys
C-c C-e C-a h h
#+END_SRC
#+BEGIN_SRC Error message
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
start-process("org-export-process" "*Org Export Process*"
"c:/emacs-24.3/bin/emacs" "-Q" "--batch" "-l" nil "-l"
"c:/DOCUME~1/ADMINI~1/CONFIG~1/Temp/org-export-process3704Exd")
org-export-to-file(html "./minimal.html" t nil nil nil nil)
org-html-export-to-html(t nil nil nil)
org-export-dispatch(nil)
call-interactively(org-export-dispatch nil nil)
#+END_SRC
#+BEGIN_SRC Local/Temp/org-export-process3704Exd
;; -*- coding: iso-latin-1-dos; -*-
(with-temp-buffer (when org-export-async-debug (quote (setq debug-on-error t)))
(setq kill-emacs-hook nil org-babel-confirm-evaluate-answer-no t) (require
(quote ox)) (funcall (lambda nil (let ((inhibit-modification-hooks t)) (let
((org-mode-hook nil) (org-inhibit-startup t)) (org-mode)) (set
(make-local-variable (quote org-cycle-global-status)) (quote overview)) (set
(make-local-variable (quote org-target-link-regexp)) (quote nil)) (set
(make-local-variable (quote org-macro-templates)) (quote (("time" . "(eval
(format-time-string \"$1\"))") ("property" . "(eval (org-entry-get nil \"$1\"
'selective))")))) (set (make-local-variable (quote org-table-may-need-update))
(quote t)) (set (make-local-variable (quote org-latex-and-related-regexp))
(quote "")) (set (make-local-variable (quote org-all-time-keywords)) (quote
("SCHEDULED" "DEADLINE" "CLOCK" "CLOSED"))) (set (make-local-variable (quote
org-maybe-keyword-time-regexp)) (quote
"\\(\\<\\(SCHEDULED:\\|DEADLINE:\\|CLOSED:\\|CLOCK:\\)\\)?
*\\([[<][0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} ?[^]
>]*?[]>]\\|<%%([^
>]*>\\)")) (set (make-local-variable (quote org-keyword-time-not-clock-regexp))
>(quote "\\<\\(SCHEDULED:\\|DEADLINE:\\|CLOSED:\\) *[[<]\\([^]>]+\\)[]>]"))
>(set (make-local-variable (quote org-keyword-time-regexp)) (quote
>"\\<\\(SCHEDULED:\\|DEADLINE:\\|CLOSED:\\|CLOCK:\\) *[[<]\\([^]>]+\\)[]>]"))
>(set (make-local-variable (quote org-closed-time-regexp)) (quote "\\<CLOSED:
>*\\[\\([^]]+\\)\\]")) (set (make-local-variable (quote
>org-scheduled-time-hour-regexp)) (quote "\\<SCHEDULED:
>*<\\([^>]+[0-9]\\{1,2\\}:[0-9]\\{2\\}[0-9-+:hdwmy .]*\\)>")) (set
>(make-local-variable (quote org-scheduled-time-regexp)) (quote "\\<SCHEDULED:
>*<\\([^>]+\\)>")) (set (make-local-variable (quote org-scheduled-regexp))
>(quote "\\<SCHEDULED:")) (set (make-local-variable (quote
>org-deadline-line-regexp)) (quote "\\<\\(DEADLINE:\\).*")) (set
>(make-local-variable (quote org-deadline-time-hour-regexp)) (quote
>"\\<DEADLINE: *<\\([^>]+[0-9]\\{1,2\\}:[0-9]\\{2\\}[0-9-+:hdwmy
.]*\\)>")) (set (make-local-variable (quote org-deadline-time-regexp))
(quote "\\<DEADLINE: *<\\([^>]+\\)>")) (set (make-local-variable (quote
org-deadline-regexp)) (quote "\\<DEADLINE:")) (set (make-local-variable (quote
org-todo-line-tags-regexp)) (quote "^\\(\\*+\\)\\(?:
+\\(TODO\\|DONE\\)\\)?\\(?: +\\(.*?\\)\\)??\\(?:[
]+\\(:[[:alnum:]:_@#%]+:\\)\\)?[ ]*$")) (set (make-local-variable (quote
org-complex-heading-regexp-format)) (quote "^\\(\\*+\\)\\(?:
+\\(TODO\\|DONE\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(?:\\[[0-9%%/]+\\]
*\\)?\\(%s\\)\\(?: *\\[[0-9%%/]+\\]\\)?\\)\\(?:[
]+\\(:[[:alnum:]_@#%%:]+:\\)\\)?[ ]*$")) (set (make-local-variable (quote
org-complex-heading-regexp)) (quote "^\\(\\*+\\)\\(?:
+\\(TODO\\|DONE\\)\\)?\\(?: +\\(\\[#.\\]\\)\\)?\\(?: +\\(.*?\\)\\)??\\(?:[
]+\\(:[[:alnum:]_@#%:]+:\\)\\)?[ ]*$")) (set (make-local-variable (quote
org-todo-line-regexp)) (quote "^\\(\\*+\\)\\(?:
+\\(TODO\\|DONE\\)\\)?\\(?: +\\(.*?\\)\\)?[ ]*$")) (set
(make-local-variable (quote org-not-done-regexp)) (quote "\\(TODO\\)")) (set
(make-local-variable (quote org-todo-regexp)) (quote "\\(TODO\\|DONE\\)")) (set
(make-local-variable (quote org-not-done-keywords)) (quote ("TODO"))) (set
(make-local-variable (quote org-drawer-regexp)) (quote "^[
]*:\\(PROPERTIES\\|CLOCK\\|LOGBOOK\\|RESULTS\\):[ ]*$")) (set
(make-local-variable (quote org-ds-keyword-length)) (quote 12)) (set
(make-local-variable (quote org-use-sub-superscripts)) (quote t)) (set
(make-local-variable (quote org-file-properties)) (quote nil)) (set
(make-local-variable (quote org-todo-log-states)) (quote nil)) (set
(make-local-variable (quote org-todo-sets)) (quote (("TODO" "DONE")))) (set
(make-local-variable (quote org-todo-heads)) (quote ("TODO"))) (set
(make-local-variable (quote org-done-keywords)) (quote ("DONE"))) (set
(make-local-variable (quote
org-todo-keywords-1)) (quote ("TODO" "DONE"))) (set (make-local-variable
(quote org-todo-key-trigger)) (quote nil)) (set (make-local-variable (quote
org-todo-key-alist)) (quote ((:startgroup) ("TODO" . 116) ("DONE" . 100)
(:endgroup)))) (set (make-local-variable (quote org-todo-kwd-alist)) (quote
(("TODO" sequence "TODO" "DONE" "DONE") ("DONE" sequence "TODO" "DONE"
"DONE")))) (set (make-local-variable (quote org-tag-alist)) (quote nil)) (set
(make-local-variable (quote org-tag-groups-alist)) (quote nil)) (set
(make-local-variable (quote org-file-tags)) (quote nil)) (set
(make-local-variable (quote buffer-file-name)) (quote
"c:/emacs-24.3/bin/minimal.org")) (set (make-local-variable (quote
default-directory)) (quote "c:/emacs-24.3/bin/")) (set (make-local-variable
(quote buffer-file-coding-system)) (quote iso-latin-1-dos)) (insert "* Hello
world
How things are going?
") (narrow-to-region 1 38) (goto-char 37)))) (restore-buffer-modified-p
nil) (print (progn (let ((output (org-export-as (quote html) nil nil nil
(quote nil)))) (with-temp-buffer (insert output) (let
((coding-system-for-write (quote utf-8))) (write-file
"./minimal.html"))) (or (ignore-errors (funcall (quote nil)
"./minimal.html")) "./minimal.html")))))
#+END_SRC
Emacs : GNU Emacs 24.3.1 (i386-mingw-nt5.1.2600)
of 2013-03-17 on MARVIN
Package: Org-mode version 8.2.1 (release_8.2.1-134-g8b264d @ c:/org-mode/lisp/)
current state:
==============
(setq
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-babel-pre-tangle-hook '(save-buffer)
org-export-coding-system 'utf-8
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-confirm-elisp-link-function 'yes-or-no-p
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-mode-hook '(#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all append
local] 5]
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-babel-show-result-all
append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-confirm-shell-link-function 'yes-or-no-p
)