Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-18 Thread Nasser Alkmim
Thanks Alan, I found a fix to my problem.

-- 
Nasser Alkmim 
 +43 677 6408 9171



Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-18 Thread Alan Schmitt
Hello,

On 2024-03-17 19:05, Nasser Alkmim  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
 


signature.asc
Description: PGP signature


Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-17 Thread Nasser Alkmim
Alan Schmitt  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



Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-17 Thread Nasser Alkmim
Alan Schmitt  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



Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-09 Thread Alan Schmitt
Hi Pedro,
On 2024-03-08 18:07, Pedro Andres Aranda Gutierrez  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


signature.asc
Description: PGP signature


Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-08 Thread Pedro Andres Aranda Gutierrez
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  
> escribió:
> 
> Hi Pedro,
> 
> On 2024-03-07 10:03, Pedro Andres Aranda Gutierrez  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




Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-07 Thread Pedro Andres Aranda Gutierrez
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  
> escribió:
> 
> Hi Pedro,
> 
> On 2024-03-07 10:03, Pedro Andres Aranda Gutierrez  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



Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-07 Thread Alan Schmitt
Hi Pedro,

On 2024-03-07 10:03, Pedro Andres Aranda Gutierrez  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


signature.asc
Description: PGP signature


Re: Subject: cannot export asynchronously because of org-fold-core--update-buffer-folds

2024-03-07 Thread Pedro Andres Aranda Gutierrez
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