From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CIt6M67/P2NSXAEAbAwnHQ (envelope-from ) for ; Fri, 07 Oct 2022 12:30:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mHtPM67/P2MYLAEAauVa8A (envelope-from ) for ; Fri, 07 Oct 2022 12:30:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6CAB8242A2 for ; Fri, 7 Oct 2022 12:30:06 +0200 (CEST) Received: from localhost ([::1]:42604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogkcH-0001Co-It for larch@yhetil.org; Fri, 07 Oct 2022 06:30:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogkVv-0007cH-3V for emacs-orgmode@gnu.org; Fri, 07 Oct 2022 06:23:35 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:34678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogkVq-0007dU-0Z for emacs-orgmode@gnu.org; Fri, 07 Oct 2022 06:23:30 -0400 Received: by mail-pl1-x636.google.com with SMTP id n7so4186495plp.1 for ; Fri, 07 Oct 2022 03:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=tv2Pwyl7gYyDQWBI7LeAWd+9Pkr9kx/MIEEA+lhI25o=; b=P3BEumMy6ZMvaxy2VHTA42uAiJXEJXeAFJtsz62/stlIlUrcmWpnnobtD3SFeL3Hyc WKTuY0cUOk0V6Z7j6L8UpOIv9fghU9olPPparcIxe+FM4hxyMZaGZB8GK8OdaHBlxeBF 0LfbFXH0d57dyTyhNrEXSk5z7ITN0GjyMX/YCiqb1mG5rnOSVhtgKUseoIdDheaZW+gn 1wQtu2PmX1UFoZHgsjhL6BqyK+q9HtHDXnddkyWVgoQkt6G0lEf5gVmMNukaScs0YNui VP1BrMkiJu2ULVRbgbUutUb3ljVsbdawcinDY7iJ9mbpn/WlWPVR+eA6ckC5oOfveZ4B eZ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tv2Pwyl7gYyDQWBI7LeAWd+9Pkr9kx/MIEEA+lhI25o=; b=SV46scBamhWpuw08jZQWXooHIozmY+ghDTJ85e+CuGChO20wyVY9kEQgka5Axj40B7 qbO7PoRL7zV7lsiWKNCt6MTRWp4/j33K9V4V5n2I5At3dyqYuyuM/JMIiL41rz/Z5+vi WScN2V63fcOGx/gRy4fFFvRX0bm2ENMrF18SF6HXavFkV9/U2e0ip+bLoY7A8bY8STa/ hYLQcHDIPjSuI8w+aqklGl/77IW5aQv788OjCQjiIogergF4ZRHwtFg9nMndyI5By/uS ugcmRHFsWiyVDYWc6cNWHWN8QsMod1nbtcBNGtdWTtkCtILNij97ZwVRfmP2kuGpBoti 9+ZQ== X-Gm-Message-State: ACrzQf3yMgQT0tw9jvLB3+D0+fhO/ReuTxs85fWawsDLY1dWOdW0NWyg oL4QiFgjp39J1jCRw3KZxb4= X-Google-Smtp-Source: AMsMyM45+cQ5QEf5rlLK+sk4UuQMwDENi7sVb6vIZ9FH/mep3GDCQtkVAuvmmjY2GxdAnDr4OplLhg== X-Received: by 2002:a17:902:ab1d:b0:180:4030:757d with SMTP id ik29-20020a170902ab1d00b001804030757dmr897173plb.155.1665138199686; Fri, 07 Oct 2022 03:23:19 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id r18-20020a170902e3d200b0017f75bc7a61sm1170863ple.166.2022.10.07.03.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 03:23:18 -0700 (PDT) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: "Fraga, Eric" , "emacs-orgmode@gnu.org" Subject: Re: The Org mode in the Org Git does not export In-Reply-To: References: <87y1u7peo2.fsf@ucl.ac.uk> <871qrwgptv.fsf@localhost> <877d1nfxpj.fsf@localhost> <87a66iap48.fsf@localhost> <87o7uy5lng.fsf@localhost> <87edvs2qlj.fsf@localhost> <875ygwmc74.fsf@localhost> Date: Fri, 07 Oct 2022 18:24:09 +0800 Message-ID: <87zge8j5iu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=yantar92@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665138606; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tv2Pwyl7gYyDQWBI7LeAWd+9Pkr9kx/MIEEA+lhI25o=; b=k8WFt80b1qIhKnTDO/Xt9vTvu6dDYsPoQTcWHp3Nq3ivpRGyAMC8LN2kgysIJv3PkwHId0 O8m5ETto35WXM37rfFGtii63JtV4er0ymfJDrshvHu6M8w4xMK7FWS+EbrmXLiUyEPwMKT vu7OmPTBlYqPoC1aRQ6NqbN2DjNVujR6w/woinHOXEY/hYHs9aXFXuDOaOK375L5G7zBGP Z+qA+EEXYaL9u4b7hT3/MUf1GS0SC31OG/GmmITylbKBL83KcjAYSYDv/NUR1NzYVsVOIx AM8S1m1098AuhY7oW11T5w9QIlgfnPO5jnmURAFqSjz5FJP27Zf3jzWnXnxRZg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665138606; a=rsa-sha256; cv=none; b=TGqe+hPRYIJuherMRkjEfoIfxl4wuoEfwaihYHuUO60jjVmNRPHs5iWJLh3bMdKj93wRZG 83ztKdD3EcpNlehB/ZIh8ZXu90Rw5McXXxsrORMrB+y7ZCsl9K2pBNxz5COzoz660b+84R qAUhKVaDB8O+4YkEY9CqRfSZ+THEc042oifPguvBC3eThm06YxQyaOVoP8Yx53n3n6LYFN z/cc9GnFgZD8B25pJ1I7Jw+Odhvv0tRay/xsmiffcjH7LYNULZK7Y9uRSXXnGY1nd1bGWD ASjMvTigKBQo40rLYphDWpCb/sFUjRaximDBY3tiTr5ZdZKZrBTuotRRKp/jqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=P3BEumMy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.87 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=P3BEumMy; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6CAB8242A2 X-Spam-Score: -1.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: Eu/jLfafiFw2 Rudolf Adamkovi=C4=8D writes: > Ihor Radchenko 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 # 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} > & =3D y \left( -1 - 2 \tan x - \frac{2x + 1}{x^2 + x + 1} \right) > \\ > & =3D \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=3D86b6d843f= 6e8d33c0dcf414f7fda2b1ac6492550 > 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=3D3de74bbef= f704a1e297d0f8c445790928e71344f > (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=3D17708ab3f= a4f2a0f118bf86cebd4753f50e8bb26 https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D86b6d843f= 6e8d33c0dcf414f7fda2b1ac6492550 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. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at