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 WGMdDgUSpmGylAAAgWs5BA (envelope-from ) for ; Tue, 30 Nov 2021 12:59:01 +0100 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 +HqNCQUSpmEjeQAAB5/wlQ (envelope-from ) for ; Tue, 30 Nov 2021 11:59:01 +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 64EA94795 for ; Tue, 30 Nov 2021 12:59:00 +0100 (CET) Received: from localhost ([::1]:58180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ms1mk-0003uM-Jk for larch@yhetil.org; Tue, 30 Nov 2021 06:58:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:60342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms1m5-0003t5-H6 for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 06:58:17 -0500 Received: from mout01.posteo.de ([185.67.36.65]:56763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ms1m2-0002ca-9r for emacs-orgmode@gnu.org; Tue, 30 Nov 2021 06:58:15 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 0375C240026 for ; Tue, 30 Nov 2021 12:58:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1638273490; bh=juqeG+BAly6nlITJN86XYnwt30h8YHpOIfwvtlczWX0=; h=Date:Subject:To:From:Cc:From; b=PsyUQCNiJUF9JOddb5nwLQwc8P1+yViEgbC1VCflp7j+9KVFblZSCM14H98l8rwfb 86NYT+sc2o+wjEWymIvfzv9eCvWN581h1qJd4ykIWr8n0w9oBVfHFmk5C9RWOeix0I yZgHJgRi86nlbhtzuFF3nDLoH6oJQc2KE5teP+d4DSVnreRWyIxKENE/PNmhCs4qVZ wE4i4U9Rg/kWY6KyQGkROcslh5cFiRjFNyJmMXgeQh6SfEfF5R8GbhALl7Ct3jV/nj cAtbEPMtsw/4gqfF82OYv7znLYJEcWPkWg/fV8v5lmZqWBR4zurSEotrXvfJ30PApl 0klb2mqn546Hw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J3LMN63bFz6tmX; Tue, 30 Nov 2021 12:58:08 +0100 (CET) Message-ID: Date: Tue, 30 Nov 2021 11:58:07 +0000 MIME-Version: 1.0 Subject: Re: [patch] fix ox-latex async export bug Content-Language: fr To: Nicolas Goaziou References: <874k7ww9te.fsf@gmx.us> <877dcsoy6m.fsf@nicolasgoaziou.fr> <871r2y3aln.fsf@nicolasgoaziou.fr> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= In-Reply-To: <871r2y3aln.fsf@nicolasgoaziou.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sebastien.miquel@posteo.eu Cc: emacs-orgmode 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=1638273540; h=from:from:sender:sender:reply-to: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=KSbj/sW8B6uVXUDE3HmbmmElXt0k/PdIIe8fZZ+Ypmw=; b=ih9qcvzzNmIDvZKMKrCq43UP9U9hsTOZ/YABwzOXW1jHF+Ve8/3dRgQxpzJjYuuXKXJnph pVASA0v1FQGi+JY+YZBYQTfdHg05fsYQDuSUGNzhwVFgBqrP5mZDSuPaTPrKgp5cFVNcir uWUEmXQM6cMssS3qk2am0vV6365GZ1etCeWr0E1P9y+ge9l/Kyk5yaNlH67Ve8HIFjOQ36 tskQyCvzw32G4Zx8WF/8UwLiHRw73RzX6554wORM4bFUXQWtmYjii+9wqUjfbyZ3LKQVRs O1eoKCBR1spvFqQblItmXhd1MXy8cb60TdtR6B1+i6RlWRZ0zE6E3i/cnlUKzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638273540; a=rsa-sha256; cv=none; b=C/xzL1SRVla9lhjARLRIn6p/3KliMqm41bLWTMWAk2TNSJj3AP39BA+SQJwDDOLnbpqSxw zpexl/M2pRIK5b82lssMuZdSiLmEW2rfziZ4N6ULdRwYnENrc2VDjXihJ/GO6H2Vk0g8cR j8CSZttjiQ2JX0CXcY+OJd21URE7G01xsr13GahZEVFnBBPQHn5hmf6zmB57Ajn7r85G7e tbw9Or3D54sz8TxSYcBFBxFGjzJ3OLj1RI+OuVCRXvCcFDxy8ZafpE1TkPtR31//H6CkUO 8N92FaUzdjRVWZmhkq/nTIdX+QQCun12CFypSqEIr5q+U/G5qLIdAxAbDwv7qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=PsyUQCNi; dmarc=pass (policy=none) header.from=posteo.eu; 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: -4.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=PsyUQCNi; dmarc=pass (policy=none) header.from=posteo.eu; 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: 64EA94795 X-Spam-Score: -4.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: XDbdEru0Sv8e 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  1. This lambda is passed as the =post-process= variable of     =org-export-to-file=.  2. Which converts it to code using =`(funcall ',post-process)=  3. Which =org-export-async-start= writes to a file, to be executed by     the external emacs process. 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. My understanding of elisp and the native compilation business is quite superficial, so this may be wrong. Regards, -- Sébastien Miquel