emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
@ 2024-03-07  9:03 Pedro Andres Aranda Gutierrez
  2024-03-07  9:42 ` Alan Schmitt
  0 siblings, 1 reply; 9+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-03-07  9:03 UTC (permalink / raw)
  To: alan.schmitt; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

Hi,

could you please try to add

#+LATEX_CLASS: beamer
#+LATEX_CLASS_OPTIONS: [presentation,aspectratio=169]

instead of

(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\}")))

and see if that makes any difference?

My .2cents, /PA
-- 
Fragen sind nicht da, um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 1425 bytes --]

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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-07  9:03 Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds Pedro Andres Aranda Gutierrez
@ 2024-03-07  9:42 ` Alan Schmitt
  2024-03-07 10:45   ` Pedro Andres Aranda Gutierrez
  2024-03-08 17:07   ` Pedro Andres Aranda Gutierrez
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Schmitt @ 2024-03-07  9:42 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

Hi Pedro,

On 2024-03-07 10:03, Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

> could you please try to add
>
> #+LATEX_CLASS: beamer
> #+LATEX_CLASS_OPTIONS: [presentation,aspectratio=169]
>
> instead of
>
> (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\}")))
>
> and see if that makes any difference?

Thank you for the suggestion. I tried this and it does not help, I have
the same error. I do not know how to debug it since the error happens in
compiled code whose origin is not given…

The surprising part is that the problematic function was introduced very
recently
(https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=87c9f9b5db2e14fe0c5254105b7b90b01bbf8d61)
but it seems to be used in the asynchronous export that does not load
any package, so there I should be using the orgmode version shipped with
emacs…

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-07  9:42 ` Alan Schmitt
@ 2024-03-07 10:45   ` Pedro Andres Aranda Gutierrez
  2024-03-08 17:07   ` Pedro Andres Aranda Gutierrez
  1 sibling, 0 replies; 9+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-03-07 10:45 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Org Mode List

Will try with my setup @home with the main branch of the git to check again.
 /PA
Enviado desde mi iPhone

> El 7 mar 2024, a las 10:42, Alan Schmitt <alan.schmitt@polytechnique.org> escribió:
> 
> Hi Pedro,
> 
> On 2024-03-07 10:03, Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
> 
>> could you please try to add
>> 
>> #+LATEX_CLASS: beamer
>> #+LATEX_CLASS_OPTIONS: [presentation,aspectratio=169]
>> 
>> instead of
>> 
>> (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\}")))
>> 
>> and see if that makes any difference?
> 
> Thank you for the suggestion. I tried this and it does not help, I have
> the same error. I do not know how to debug it since the error happens in
> compiled code whose origin is not given…
> 
> The surprising part is that the problematic function was introduced very
> recently
> (https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=87c9f9b5db2e14fe0c5254105b7b90b01bbf8d61)
> but it seems to be used in the asynchronous export that does not load
> any package, so there I should be using the orgmode version shipped with
> emacs…
> 
> Alan


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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-07  9:42 ` Alan Schmitt
  2024-03-07 10:45   ` Pedro Andres Aranda Gutierrez
@ 2024-03-08 17:07   ` Pedro Andres Aranda Gutierrez
  2024-03-09  9:43     ` Alan Schmitt
  1 sibling, 1 reply; 9+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-03-08 17:07 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Org Mode List

Hi,

I’m very interested on how your document header looks like. Can you please send mee a file with your header
and a couple of dummy slides? I’m not able to reproduce the problem…

Thx, /PA


> El 7 mar 2024, a las 10:42, Alan Schmitt <alan.schmitt@polytechnique.org> escribió:
> 
> Hi Pedro,
> 
> On 2024-03-07 10:03, Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:
> 
>> could you please try to add
>> 
>> #+LATEX_CLASS: beamer
>> #+LATEX_CLASS_OPTIONS: [presentation,aspectratio=169]
>> 
>> instead of
>> 
>> (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\}")))
>> 
>> and see if that makes any difference?
> 
> Thank you for the suggestion. I tried this and it does not help, I have
> the same error. I do not know how to debug it since the error happens in
> compiled code whose origin is not given…
> 
> The surprising part is that the problematic function was introduced very
> recently
> (https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=87c9f9b5db2e14fe0c5254105b7b90b01bbf8d61)
> but it seems to be used in the asynchronous export that does not load
> any package, so there I should be using the orgmode version shipped with
> emacs…
> 
> Alan



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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-08 17:07   ` Pedro Andres Aranda Gutierrez
@ 2024-03-09  9:43     ` Alan Schmitt
  2024-03-17 18:05       ` Nasser Alkmim
  2024-03-17 18:05       ` Nasser Alkmim
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Schmitt @ 2024-03-09  9:43 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 809 bytes --]

Hi Pedro,
On 2024-03-08 18:07, Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

> I’m very interested on how your document header looks like. Can you please send mee a file with your header
> and a couple of dummy slides? I’m not able to reproduce the problem…

The document header was not the problem, as it happened with any
file. The core of the issue is that the org version used to initiate the
export must be the same than the org version run in the asynchronous
export process, as bytecode from org is passed between them (and in my
case this bytecode was mentioning a recently introduced org function
that is not available in the org shipped with emacs). Making sure the
async init file loaded the same org version than the one I use everyday
solved the problem.

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-09  9:43     ` Alan Schmitt
@ 2024-03-17 18:05       ` Nasser Alkmim
  2024-03-17 18:05       ` Nasser Alkmim
  1 sibling, 0 replies; 9+ messages in thread
From: Nasser Alkmim @ 2024-03-17 18:05 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Pedro Andres Aranda Gutierrez, Org Mode List

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

>
> The document header was not the problem, as it happened with any
> file. The core of the issue is that the org version used to initiate the
> export must be the same than the org version run in the asynchronous
> export process, as bytecode from org is passed between them (and in my
> case this bytecode was mentioning a recently introduced org function
> that is not available in the org shipped with emacs). Making sure the
> async init file loaded the same org version than the one I use everyday
> solved the problem.
>
> Alan
>

Hi Alan, how did you effectively solve the problem?

I'm experiencing the same.
I tried to add the recent org folder that I use to the load-path after loading 'ox, but it does not work.


-- 
Nasser Alkmim 
 +43 677 6408 9171


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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-09  9:43     ` Alan Schmitt
  2024-03-17 18:05       ` Nasser Alkmim
@ 2024-03-17 18:05       ` Nasser Alkmim
  2024-03-18  6:57         ` Alan Schmitt
  1 sibling, 1 reply; 9+ messages in thread
From: Nasser Alkmim @ 2024-03-17 18:05 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Pedro Andres Aranda Gutierrez, Org Mode List

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

>
> The document header was not the problem, as it happened with any
> file. The core of the issue is that the org version used to initiate the
> export must be the same than the org version run in the asynchronous
> export process, as bytecode from org is passed between them (and in my
> case this bytecode was mentioning a recently introduced org function
> that is not available in the org shipped with emacs). Making sure the
> async init file loaded the same org version than the one I use everyday
> solved the problem.
>
> Alan
>

Hi Alan, how did you effectively solve the problem?

I'm experiencing the same.
I tried to add the recent org folder that I use to the load-path after loading 'ox, but it does not work.


-- 
Nasser Alkmim 
 +43 677 6408 9171


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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-17 18:05       ` Nasser Alkmim
@ 2024-03-18  6:57         ` Alan Schmitt
  2024-03-18  9:39           ` Nasser Alkmim
  0 siblings, 1 reply; 9+ messages in thread
From: Alan Schmitt @ 2024-03-18  6:57 UTC (permalink / raw)
  To: Nasser Alkmim; +Cc: Pedro Andres Aranda Gutierrez, Org Mode List

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

Hello,

On 2024-03-17 19:05, Nasser Alkmim <nasser.alkmim@gmail.com> writes:

> Hi Alan, how did you effectively solve the problem?

Here is the contents of my export-init file:

(setq user-emacs-directory "/Users/schmitta/projets/plain-emacs-config/")

(add-to-list 'load-path (expand-file-name "straight/build/org/" user-emacs-directory))

(setq-default indent-tabs-mode nil)

(setq org-latex-src-block-backend 'minted)
(setq org-latex-pdf-process
      '("latexmk -pdflatex='%latex --shell-escape -8bit' -pdf -quiet %f"))
(setq org-export-async-debug t)
(require 'ox-beamer)
(add-to-list 'org-beamer-environments-extra
 	     '("onlyenv" "O" "\\begin{onlyenv}%a" "\\end{onlyenv}"))

Best,

Alan
 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

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

* Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds
  2024-03-18  6:57         ` Alan Schmitt
@ 2024-03-18  9:39           ` Nasser Alkmim
  0 siblings, 0 replies; 9+ messages in thread
From: Nasser Alkmim @ 2024-03-18  9:39 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: Pedro Andres Aranda Gutierrez, Org Mode List

Thanks Alan, I found a fix to my problem.

-- 
Nasser Alkmim 
 +43 677 6408 9171


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

end of thread, other threads:[~2024-03-18  9:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07  9:03 Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds Pedro Andres Aranda Gutierrez
2024-03-07  9:42 ` Alan Schmitt
2024-03-07 10:45   ` Pedro Andres Aranda Gutierrez
2024-03-08 17:07   ` Pedro Andres Aranda Gutierrez
2024-03-09  9:43     ` Alan Schmitt
2024-03-17 18:05       ` Nasser Alkmim
2024-03-17 18:05       ` Nasser Alkmim
2024-03-18  6:57         ` Alan Schmitt
2024-03-18  9:39           ` Nasser Alkmim

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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).