emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG] Async pdf export broken with native-comp
@ 2021-07-15 17:45 Sébastien Miquel
  2021-07-15 23:15 ` Tim Cross
  2021-07-15 23:36 ` Mark Barton
  0 siblings, 2 replies; 6+ messages in thread
From: Sébastien Miquel @ 2021-07-15 17:45 UTC (permalink / raw)
  To: emacs-orgmode


The async pdf export functionality appears to be broken with latest org 
and a
recent emacs version compiled with native-comp enabled (I have not tested
without native-comp).

To reproduce:

  - use `emacs -q` and an empty init.el file (your init file gets picked 
up by
    the async emacs instance)
  - (setq org-export-async-debug t)
  - find any org file and hit =C-c C-e C-a C-l C-p= to export as pdf file.

The async process will exit abnormaly.

The issue stems from this line in `org-export-to-file`
  :       (ignore-errors (funcall ',post-process ,file))

In `org-latex-export-to-pdf`, this `post-process` is set to
  :       (lambda (file) (org-latex-compile file))

I think native-comp compiles this lambda, which messes things up.

As a fix, you can quote the lambda in `org-latex-export-to-pdf`
  :       '(lambda (file) (org-latex-compile file))

The same applies to other backends but I don't know if it's the right 
thing to do.


Sébastien Miquel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-16  9:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 17:45 [BUG] Async pdf export broken with native-comp Sébastien Miquel
2021-07-15 23:15 ` Tim Cross
2021-07-15 23:36 ` Mark Barton
2021-07-16  6:05   ` Timothy
2021-07-16  6:31     ` Tim Cross
2021-07-16  9:32     ` Sébastien Miquel

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).