[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cannot export asynchronously because of org-fold-core--update-buffer-fol
From: |
Alan Schmitt |
Subject: |
cannot export asynchronously because of org-fold-core--update-buffer-folds |
Date: |
Wed, 06 Mar 2024 15:45:08 +0100 |
Hello,
I’m trying to export a file asynchronously to beamer/pdf, and I have a
strange error. Here is the contents of the *Org Export Process* buffer:
Debugger entered--Lisp error: (void-function org-fold-core--update-buffer-folds)
org-fold-core--update-buffer-folds()
#f(compiled-function () #<bytecode 0x1b5ee3daf7014ea1>)()
funcall(#f(compiled-function () #<bytecode 0x1b5ee3daf7014ea1>))
(progn nil (progn (setq kill-emacs-hook nil) (setq
org-babel-confirm-evaluate-answer-no t)) (require 'ox) (funcall
'#f(compiled-function () #<bytecode 0x1b5ee3daf7014ea1>))
(restore-buffer-modified-p nil) (print (let ((output (org-export-as 'beamer nil
nil nil '(:output-file "slides.tex")))) (let ((temp-buffer (generate-new-buffer
" *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect
(progn (insert output) (if ... nil ...) (let ... ...)) (and (buffer-name
temp-buffer) (kill-buffer temp-buffer))))) (or (condition-case nil (progn
(funcall 'org-latex-compile "slides.tex")) (error nil)) "slides.tex"))))
(unwind-protect (progn nil (progn (setq kill-emacs-hook nil) (setq
org-babel-confirm-evaluate-answer-no t)) (require 'ox) (funcall
'#f(compiled-function () #<bytecode 0x1b5ee3daf7014ea1>))
(restore-buffer-modified-p nil) (print (let ((output (org-export-as 'beamer nil
nil nil '...))) (let ((temp-buffer (generate-new-buffer " *temp*" t)))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ...
...) (and ... ...)))) (or (condition-case nil (progn (funcall ...
"slides.tex")) (error nil)) "slides.tex")))) (and (buffer-name temp-buffer)
(kill-buffer temp-buffer)))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn nil
(progn (setq kill-emacs-hook nil) (setq org-babel-confirm-evaluate-answer-no
t)) (require 'ox) (funcall '#f(compiled-function () #<bytecode
0x1b5ee3daf7014ea1>)) (restore-buffer-modified-p nil) (print (let ((output
(org-export-as ... nil nil nil ...))) (let ((temp-buffer ...))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect ... ...))) (or
(condition-case nil (progn ...) (error nil)) "slides.tex")))) (and (buffer-name
temp-buffer) (kill-buffer temp-buffer))))
(let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer
(set-buffer temp-buffer) (unwind-protect (progn nil (progn (setq
kill-emacs-hook nil) (setq org-babel-confirm-evaluate-answer-no t)) (require
'ox) (funcall '#f(compiled-function () #<bytecode 0x1b5ee3daf7014ea1>))
(restore-buffer-modified-p nil) (print (let ((output ...)) (let (...)
(save-current-buffer ... ...)) (or (condition-case nil ... ...)
"slides.tex")))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
load-with-code-conversion("/private/var/folders/p6/3p2365qn1dx08q33rqwnr2hh00..."
"/private/var/folders/p6/3p2365qn1dx08q33rqwnr2hh00..." nil t)
command-line-1(("-l" "/Users/schmitta/work/skeletons/research/talks/Effe..."
"-l" "/var/folders/p6/3p2365qn1dx08q33rqwnr2hh0000gn/T/o..."))
command-line()
normal-top-level()
To make sure I have a reproducible export, I set
org-export-async-init-file to a file with the following contents:
;;; export-init.el --- description -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
(setq-default indent-tabs-mode nil)
(setq debug-on-error t)
(require 'ox-latex)
(add-to-list 'org-latex-classes
'("my-beamer"
"\\documentclass\[presentation,aspectratio=169\]\{beamer\}
[NO-DEFAULT-PACKAGES]"
("\\section\{%s\}" . "\\section*\{%s\}")
("\\subsection\{%s\}" . "\\subsection*\{%s\}")
("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}")))
(require 'ox-beamer)
(setq org-latex-listings 'minted)
(setq org-latex-pdf-process
'("latexmk -pdflatex='%latex --shell-escape -8bit' -pdf -quiet %f"))
(setq org-export-async-debug t)
(provide 'export-init)
;;; export-init.el ends here
I assume the problem is that there is a version mismatch between the org
I’m using to start the export and the org in the async process, but I do
not understand how they would interact. In particular, I don’t
understand why there is a mention of byte-compiled code in the error
trace.
If it matters, the emacs with which I’m initializing the export with is
started with the --init-directory option.
How can I track where this error comes from?
Thanks,
Alan
signature.asc
Description: PGP signature
- cannot export asynchronously because of org-fold-core--update-buffer-folds,
Alan Schmitt <=