From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id BeJ0NFHE8GD9KAEAgWs5BA (envelope-from ) for ; Fri, 16 Jul 2021 01:27:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2EqeL1HE8GBufgAAB5/wlQ (envelope-from ) for ; Thu, 15 Jul 2021 23:27:13 +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 49FC619722 for ; Fri, 16 Jul 2021 01:27:13 +0200 (CEST) Received: from localhost ([::1]:56108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4Al5-0007pm-E8 for larch@yhetil.org; Thu, 15 Jul 2021 19:27:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56606) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m4AkS-0007pb-4w for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 19:26:32 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:35334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m4AkQ-0007j6-Ew for emacs-orgmode@gnu.org; Thu, 15 Jul 2021 19:26:31 -0400 Received: by mail-pj1-x1032.google.com with SMTP id gp5-20020a17090adf05b0290175c085e7a5so541685pjb.0 for ; Thu, 15 Jul 2021 16:26:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=vDW1/V0WSOsK9x6t8rD23U/piFBTn08O+CwnThPF61M=; b=Pwv1kerV9jVTyPHrJ3sVd69vseI8PYnEWSzleg4JYKFqN7OOn81tNudR57lw6NQmY6 zCOn5ydkTo6F9Da4NSHdCAaNBDr1EMWSp5agS1njIy/CFvnfHxdCkRPO2BXYJINBpBkf 4UqBrgC3d6/mvoTeMl2hfk0tS3h6zBsddxFfBwB8IY0oEhS78ZR2CTIlMY/a14W0ndru 2zOAB8kCMIC6c0MYBp3p2I3fqILDPwvLLtgXOkzAtXxdTGwVNaCMWekterH3vB4rByeg MyiYPRVwoFgWuEBkaE6GmF28egw7OV3OCSx+XOt24/p3QN10CRRT6zD9TlYdE8QC9dep M6bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=vDW1/V0WSOsK9x6t8rD23U/piFBTn08O+CwnThPF61M=; b=a2h5+vCJdvybjoHPHe7q5mFmFM2OqisKl/YBRfM5KXHm8s/j+t4LAdNjAuMDfsJDRt 85O9HSyCmv1hcp/Xu/yGrQICe8dakL0UBj/P7g/6etjSyc8JJwn91eOqCa0Qy+AjzlV/ nyVkip6+ke1iHFLo+SVqnQc2mIbTBg8xswhXWoJbHhfHwUQJHSEoEQXcCqMtYWWxZFZP nn+lQWOTL4UCNselRqN5Ba+UA1ghvzeBpniwusHdrK89GHOfrXiyKEQcw9FPkVbf14cx 5qYHdqbJjWCFNp5ksrTgVJpKUWtK6i9W23xp30YbQx8zMpQaWrwLjktM3FPDEAyYqsMO Y/oQ== X-Gm-Message-State: AOAM533klw06hSQmW3ApgFC0hoao4aN6+mcivxh9zDtIRImSpFbzMz1h 8NtohaTmnlZ2antr9SRefOp7a3tDxzA= X-Google-Smtp-Source: ABdhPJxxAAQtnGYQWihLNAp/VtDbYq0Dpv1Vp4YhcPtUiTLJMCX6YFb9B/awdsBqkjqGcShdSgjpFw== X-Received: by 2002:a17:90a:cc7:: with SMTP id 7mr12957385pjt.20.1626391588781; Thu, 15 Jul 2021 16:26:28 -0700 (PDT) Received: from tim-desktop (106-69-67-246.dyn.iinet.net.au. [106.69.67.246]) by smtp.gmail.com with ESMTPSA id x26sm8014917pfj.71.2021.07.15.16.26.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 16:26:28 -0700 (PDT) References: <1b08067b-5203-39e3-1c8e-4af61522d011@posteo.eu> User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: [BUG] Async pdf export broken with native-comp Date: Fri, 16 Jul 2021 09:15:05 +1000 In-reply-to: <1b08067b-5203-39e3-1c8e-4af61522d011@posteo.eu> Message-ID: <878s27qhun.fsf@gmail.com> 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::1032; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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: , 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=1626391633; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=vDW1/V0WSOsK9x6t8rD23U/piFBTn08O+CwnThPF61M=; b=fVoT8kMT67uMGXyscAUzoe2P8oQuV6siGNfc8CJpgOmAbi08BUhHebc/vzMSfkJRcxaL7k Mg5pQ5KZ85MJ/IJXbQJ3+jSBzxezAu+zaAgQJxXOV6eIg1L1FBW96WnICQtIH1xncbP1VV WqG09F7/C+hO9eHIQrG8+bwVBgjPh4Lx3XQjrWOQJuF2PXC8i3FmnMsjJKuV0W7E7tt711 +vMZOozvYwD3gX+zCXWsKMzNADB9IfioCZY4ZGQjmEnbODE1ALCw5f5SHLuKX2vDt6K3mo 2rGUbeE4kFDFkR7i5HGklgwc7OF4FgOFevik8xCymaazt+TVmW1ARw4KaqWVIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626391633; a=rsa-sha256; cv=none; b=nbcEOroWfCx/6hT8SxV4ip/id/HEQBA76j64VZGIHQheboAIQN9cdQIwLwxTHEQW5JToAZ 7a48R9HtY6/fiiHnVDiz/59exN/vYgFYcHlipisZkD2gDwjCHJ/Q4DOs9Sz9w2FzDHBILj YsPhLRcztwPyVdP6RmWNtg7/BCkZ/rpMpgIRwy96Xd3+6JP7O3A+1YCWytHBLLUmLerdqt WTpH5LLuNJ5YQHfOlvIZ9gB8xQKYLB+zhJBF2IKr2euTaSOeNZPF41cG/mAxlrW+zisC0k g8tOAb3mOuiNO63cQNZf53+dfVOzZUzIKbvS+CjaY/4CiQ5tG2h8smM07XY1IQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Pwv1kerV; 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-Spam-Score: -3.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Pwv1kerV; 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: 49FC619722 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: cwAtZw5tF+++ S=C3=A9bastien Miquel writes: > Hi, > > The async pdf export functionality appears to be broken with latest org a= nd a > recent emacs version compiled with native-comp enabled (I have not tested > without native-comp). > > To reproduce: > > =C2=A0- use `emacs -q` and an empty init.el file (your init file gets pic= ked up by > =C2=A0=C2=A0 the async emacs instance) > =C2=A0- (setq org-export-async-debug t) > =C2=A0- find any org file and hit =3DC-c C-e C-a C-l C-p=3D to export as = pdf file. > > The async process will exit abnormaly. > > The issue stems from this line in `org-export-to-file` > =C2=A0:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (ignore-errors (funcall ',pos= t-process ,file)) > > In `org-latex-export-to-pdf`, this `post-process` is set to > =C2=A0:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lambda (file) (org-latex-com= pile file)) > > I think native-comp compiles this lambda, which messes things up. > > As a fix, you can quote the lambda in `org-latex-export-to-pdf` > =C2=A0:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 '(lambda (file) (org-latex-co= mpile file)) > > The same applies to other backends but I don't know if it's the right thi= ng to > do. > I think native comp has a way to go before we begin to worry about how to address any bugs which it may introduce/discover. While it is good to have information like this posted to the list for anyone who wants to experiment with native comp, it would be premature to apply any fixes to the org code base.=20 --=20 Tim Cross