Re: [patch] fix ox-latex async export bug

2021-12-10 Thread Nicolas Goaziou
Hello, Sébastien Miquel writes: > I think native compilation compiles the lamdba in > =org-latex-export-to-pdf= and that there is no way to get back this > original lambda (the code) from within =org-export-to-file= or > =org-export-async-start=. Quoting the lambda prevents this > compilation.

Re: [patch] fix ox-latex async export bug

2021-12-01 Thread Rasmus
Sébastien Miquel writes: > Rasmus Pank Roulund writes: >>> This is most likely due to native compilation which compiles the >>> unquoted lambda. Once compiled, it (presumably) fails to be passed to >>> the external emacs process. >> Ah, interesting. Is this a bug or a feature? > > I think the

Re: [patch] fix ox-latex async export bug

2021-11-30 Thread Sébastien Miquel
Hi, Rasmus Pank Roulund writes: This is most likely due to native compilation which compiles the unquoted lambda. Once compiled, it (presumably) fails to be passed to the external emacs process. Ah, interesting. Is this a bug or a feature? I think the bug's with org-mode. As I explain

Re: [patch] fix ox-latex async export bug

2021-11-30 Thread Rasmus
Timothy writes: > Hi Tim, > >> I’m wondering if this could be a problem when exporting to latex if the >>underlying latex process encounters errors and is waiting for user >> input before >>it can continue (which happens if there are problems in the tex >> source latex is >>trying to process)?

Re: [patch] fix ox-latex async export bug

2021-11-30 Thread Rasmus Pank Roulund
Sébastien Miquel writes: > Hi, > > Nicolas Goaziou writes: >>> I don’t really understand why this bug happens to be honest. >> The patch is already an improvement, but the beast is still lurking, >> indeed. > This is most likely due to native compilation which compiles the > unquoted lambda.

Re: [patch] fix ox-latex async export bug

2021-11-30 Thread Sébastien Miquel
Hi, Nicolas Goaziou writes: This is not really the same fix. Indeed, but I tested it and it does work. You're quoting a lambda, which should not be required if the problem disappeared. IOW, the true fix probably belong in the `org-export-async-start' function. What happens is as follows  

Re: [patch] fix ox-latex async export bug

2021-11-29 Thread Nicolas Goaziou
Hello, Sébastien Miquel writes: > Attached is a patch that applies the same fix where affected. Thank you. It mostly looks good, but I have one nit. > - (lambda (file) > - (run-hook-with-args 'org-icalendar-after-save-hook file) nil > + '(lambda (file) > +

Re: [patch] fix ox-latex async export bug

2021-11-29 Thread Sébastien Miquel
Hi, Nicolas Goaziou writes: I don’t really understand why this bug happens to be honest. The patch is already an improvement, but the beast is still lurking, indeed. This is most likely due to native compilation which compiles the unquoted lambda. Once compiled, it (presumably) fails to be

Re: [patch] fix ox-latex async export bug

2021-11-28 Thread Timothy
Hi Tim, > I’m wondering if this could be a problem when exporting to latex if the >underlying latex process encounters errors and is waiting for user input before >it can continue (which happens if there are problems in the tex source latex is >trying to process)? > > It might be worth checking

Re: [patch] fix ox-latex async export bug

2021-11-28 Thread Tim Cross
Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> When I try to export documents asynchronously with ox-latex, I always get >> a bug in the “org-export-processFOO” files. The last sexp is always >> something like this: >> >> (funcall '# >> "test.tex") >> >> where the “#” and “’”

Re: [patch] fix ox-latex async export bug

2021-11-28 Thread Nicolas Goaziou
Hello, Rasmus writes: > When I try to export documents asynchronously with ox-latex, I always get > a bug in the “org-export-processFOO” files. The last sexp is always something > like this: > > (funcall '# > "test.tex") > > where the “#” and “’” are mixed around. This happens even with

[patch] fix ox-latex async export bug

2021-11-28 Thread Rasmus
Hi there, When I try to export documents asynchronously with ox-latex, I always get a bug in the “org-export-processFOO” files. The last sexp is always something like this: (funcall '# "test.tex") where the “#” and “’” are mixed around. This happens even with a very simple