From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id fYCdLajG8GCvLAEAgWs5BA (envelope-from ) for ; Fri, 16 Jul 2021 01:37:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id ED2tKKjG8GCnBAAAbx9fmQ (envelope-from ) for ; Thu, 15 Jul 2021 23:37:12 +0000 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 262DB1D6F1 for ; Fri, 16 Jul 2021 01:37:12 +0200 (CEST) Received: from localhost ([::1]:59706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4Auk-0002XJ-Px for larch@yhetil.org; Thu, 15 Jul 2021 19:37:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4AuN-0002XB-SR for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 19:36:47 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:35413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4AuM-0006HQ-BJ for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 19:36:47 -0400 Received: by mail-pf1-x433.google.com with SMTP id d12so7164198pfj.2 for ; Thu, 15 Jul 2021 16:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Wm2mE9Ji+0DQYfmHKn2Nnq3+6KrUPv5bLcAjNy/4XtM=; b=utFedYpCsnOxujzCxit8x1tD2mmmc6JlefXXYYjlAZ3FElOX5BWm6ZNrfRZfRwnus4 loFWHmnqQaRYfdwhMKLI4a048XAhVjw3Bj4nxZCmQa7MQJj8SNW5yPPyVfIISaVFjA0p xDKU7dX3/ioBe5RX0xdvLdkHAgcV1Hdv67ej78yTyfCb5+TLe/xr9TXVuTaRQELh++3X K8A3yWOnmQzWeAKGmrruOy8eFXBZ6Ru85oc+l8dvEeZnfRaZ+O4dhdRkFcLvQEJkPJeq /UnE/3nLtlM1TuSX89fgoXRsqkTfjT8co4JTLhQMT6oqFKf5NSx2VN5Jv5lMe0qD/PYm D9Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Wm2mE9Ji+0DQYfmHKn2Nnq3+6KrUPv5bLcAjNy/4XtM=; b=SC82CB/2OXLbHADn1lru0OXRKNs0h0hs78e8XNMN/NFWsLEIOcz+8jieJeOMPEeoV8 J0lGCAftUF1T3/jB1VhtydLD+YRA/ab8c/B9VQcp3ca7LuteuCHpyuVLDT9889KfLF2E poQiygqFtqi8aEWmGcu6Y8sl45oEXGzpj7zwHLqYKxOclmx7gqghTCFF2stmiZArYxHT DuGAgsOp7c4M2wIb2w77jxZDMdNenJSvrHhw2qIJ7RBeaLMOBPxjMXQBP00dW4iWew8n NdqkgmPQiKKcRV90v0AzxEcixoVQIyC6BiZ9OAwIAngBjASnPXrKzL3ztPmFZQ7bdwts WAAg== X-Gm-Message-State: AOAM530JLCqC9njE7EW+YBZwpqEtO9PWWcGe0REBu1gTaMGB4nmydosO KVtp9ukA+9ZNNJxl6FP5WnZkHxZ/UYBC5Q== X-Google-Smtp-Source: ABdhPJwlVwwjpA2tFPsIKAgcw+zbqpmiuEWORXVn91r0BtkfqhcLBth3UVAs0Ia4mjmT/khf1OgZLg== X-Received: by 2002:a05:6a00:1411:b029:302:d9d6:651d with SMTP id l17-20020a056a001411b0290302d9d6651dmr7083554pfu.56.1626392203967; Thu, 15 Jul 2021 16:36:43 -0700 (PDT) Received: from smtpclient.apple (2603-8001-7a00-01a0-9dc9-0780-955f-963e.res6.spectrum.com. [2603:8001:7a00:1a0:9dc9:780:955f:963e]) by smtp.gmail.com with ESMTPSA id i25sm7713060pfo.20.2021.07.15.16.36.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jul 2021 16:36:43 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: [BUG] Async pdf export broken with native-comp From: Mark Barton In-Reply-To: <1b08067b-5203-39e3-1c8e-4af61522d011@posteo.eu> Date: Thu, 15 Jul 2021 16:36:41 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1C8D1553-D663-433E-A885-EF4BCF3F29E5@gmail.com> References: <1b08067b-5203-39e3-1c8e-4af61522d011@posteo.eu> To: sebastien.miquel@posteo.eu X-Mailer: Apple Mail (2.3654.100.0.2.22) Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=mbarton98@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-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=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626392232; 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=Wm2mE9Ji+0DQYfmHKn2Nnq3+6KrUPv5bLcAjNy/4XtM=; b=UN2Jgvl6PqqTYkdXUq/hOnzz5Mn1WF7oS+pIyyI7YOutGG19JUmSMvjMCiNS5WoAaFIGZh zLAlGbGMBqIBQ1VsBe2+Tq7j9GapcI6cJ/pfGq6AhGo5fkfxU9740IUjEQGCM764ureqv+ lJJJ2PIO+EC9xJbDD5gQgWTQ64uLwl/+SabfXW9fJN8FcFyGMd9+UqDEfzftoee8LhHWGW zO2SYygmxY4LIEh/VaGGafbSD4qz3hjr9sL0LENH/Wmr+jAYl7zn/ywD0LoszgDsoQe8D3 XtE+jn1ZIA1C9HImL1MwjVnlyVClB/2pXRN5dVVMKJVzkvYwmaa6XxWoO5M+SQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626392232; a=rsa-sha256; cv=none; b=kxS7W9dS62XhGNToZdexz8qEE4EfvdXYqN5fT5hUJQ2Df/g5A1lQ18RBfw3nN0IFRPqWPY Rk9vfeAz54yFVA8gN0A0zJzk3AHk/2U8ujDzFvkte0BgC65AurWSB60JmVcZIa/DFnAFB7 ZsIbzfSj4zgm/dCy+viV7ErWJKbo+Wq51nCfnuPX3jzGUE0VZlQZzo9+9tRgCP9NO/5omh ksV1eDKYCaDweOo8zx339AWMGiMY5a98be8jeGE9cSpHNqhdawPaVn7cXlQIcWAqm6f6PG l958QS+KUDpt42TNr8YZqjY76zdptdKmfmOhaQb4TtQ/ICcmolE2WXfNzLBVRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=utFedYpC; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=utFedYpC; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 262DB1D6F1 X-Spam-Score: -2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: k1Vh8Yf6mCRu > On Jul 15, 2021, at 10:45 AM, S=C3=A9bastien Miquel = wrote: >=20 > Hi, >=20 > The async pdf export functionality appears to be broken with latest = org and a > recent emacs version compiled with native-comp enabled (I have not = tested > without native-comp). >=20 > To reproduce: >=20 > - use `emacs -q` and an empty init.el file (your init file gets = picked up by > the async emacs instance) > - (setq org-export-async-debug t) > - find any org file and hit =3DC-c C-e C-a C-l C-p=3D to export as = pdf file. >=20 > The async process will exit abnormaly. >=20 > The issue stems from this line in `org-export-to-file` > : (ignore-errors (funcall ',post-process ,file)) >=20 > In `org-latex-export-to-pdf`, this `post-process` is set to > : (lambda (file) (org-latex-compile file)) >=20 > I think native-comp compiles this lambda, which messes things up. >=20 > As a fix, you can quote the lambda in `org-latex-export-to-pdf` > : '(lambda (file) (org-latex-compile file)) >=20 > The same applies to other backends but I don't know if it's the right = thing to do. >=20 > Regards, >=20 > --=20 > S=C3=A9bastien Miquel >=20 >=20 Did you post this to the Emacs list? Native-comp is in master, but not = =E2=80=9Creleased=E2=80=9D. So I agree with what Tim said about it is = too soon for Org to consider solutions if it happens to be an edge case = that native-comp might be able to address. I use native-comp, but have = not tried the async export yet. Mark=