all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: "Fraga, Eric" <e.fraga@ucl.ac.uk>,
	 "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: The Org mode in the Org Git does not export
Date: Fri, 07 Oct 2022 18:24:09 +0800	[thread overview]
Message-ID: <87zge8j5iu.fsf@localhost> (raw)
In-Reply-To: <m2k05c579o.fsf@me.com>

Rudolf Adamkovič <salutis@me.com> writes:

> Ihor Radchenko <yantar92@gmail.com> writes:
>
>> Rudolf, please kindly confirm that the export performance is back to
>> satisfactory on the latest main.
>
> Performance back to normal!  Though, I noticed two issues.
>
> *** ISSUE 1: Error when exporting. ***
>
> While exporting, I see the error:
>
> "Org mode fontification error in #<buffer  *temp*> at 10"
>
> The error does not bother me, but I mention it in the case it relates to
> the next issue.

I do not see how it is related.
Do you see the error with your config or with clean Emacs?

> *** ISSUE 2: Problems re-opening the notebook. ***
>
> Reproduction steps:
>
> 1. open 'notebook.org' (C-x C-f ~/notebook.org RET)
> 2. export to HTML and open (C-c C-e h o)
> 3. kill the notebook buffer (C-x k RET)
> 4. re-open notebook (C-x C-f ~/notebook.org RET)
>
> Expected:
>
> 'notebook.org' opens
>
> Actual:
>
> *Org HTML Export LaTeX* opens, with the following content:
>
> \begin{align*}
>   \frac{dy}{dx}
>   & = y \left( -1 - 2 \tan x - \frac{2x + 1}{x^2 + x + 1} \right)
>   \\
>   & = \frac{e^{-x} {\cos}^2 x}{x^2 + x + 1}
>     \left( -1 - 2 \tan x - \frac{2x + 1}{x^2 + x + 1} \right)
> \end{align*}

Oops. Another side-effect of `buffer-file-name'. Fixed now.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=86b6d843f6e8d33c0dcf414f7fda2b1ac6492550

> P.S. The original file remains intact, but given the way we implement
> exports in Org, I think we should add two tests to the test suite to
> verify that:

> (2) no corruption happens to the original file after export.

Done.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3de74bbeff704a1e297d0f8c445790928e71344f

> (1) re-opening the file after export always re-opens it, and

I am not sure how to test this part.
I instead documented the caveats in `org-export-copy-buffer' docstring
and in the `org-html-format-latex'.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=17708ab3fa4f2a0f118bf86cebd4753f50e8bb26
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=86b6d843f6e8d33c0dcf414f7fda2b1ac6492550

Though maybe the code in `org-html-format-latex' should be factored out
into a separate macro like `org-export-with-persistent-buffer-copy'. The
macro will accept buffer name as an argument and do everything necessary
to not keep the `buffer-file-name' around.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  reply	other threads:[~2022-10-07 10:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-25 16:40 The Org mode in the Org Git does not export Rudolf Adamkovič
2022-09-25 17:06 ` Fraga, Eric
2022-09-27 22:19   ` Rudolf Adamkovič
2022-09-28  3:06     ` Ihor Radchenko
2022-09-28 12:45       ` Rudolf Adamkovič
2022-09-28 12:55         ` Rudolf Adamkovič
2022-09-28 13:24           ` Ihor Radchenko
2022-09-28 15:49           ` Max Nikulin
2022-09-28 13:14         ` Ihor Radchenko
2022-09-28 15:56           ` Rudolf Adamkovič
2022-09-28 17:29             ` Rudolf Adamkovič
2022-09-29  2:30               ` Ihor Radchenko
2022-09-29 13:37                 ` Rudolf Adamkovič
2022-09-29 13:56                   ` Ihor Radchenko
2022-09-30 12:01                     ` Rudolf Adamkovič
2022-10-01  3:02                       ` Ihor Radchenko
2022-10-01 18:04                         ` Rudolf Adamkovič
2022-10-07  5:31                           ` Ihor Radchenko
2022-10-07  9:10                             ` Rudolf Adamkovič
2022-10-07 10:24                               ` Ihor Radchenko [this message]
2022-10-07 14:18                                 ` Rudolf Adamkovič
2022-10-09  6:36                                   ` Ihor Radchenko
2022-10-09 15:29                                     ` Rudolf Adamkovič
2022-10-10 10:15                                       ` Ihor Radchenko
2022-10-10 22:08                                         ` Rudolf Adamkovič
2022-09-26  4:39 ` Ihor Radchenko
2022-09-27 22:30   ` Rudolf Adamkovič

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zge8j5iu.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=salutis@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.