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 wyfOHfUJpGEWSwEAgWs5BA (envelope-from ) for ; Mon, 29 Nov 2021 00:00:05 +0100 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 iM6zGPUJpGEDGwAAbx9fmQ (envelope-from ) for ; Sun, 28 Nov 2021 23:00:05 +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 A3E4CCF31 for ; Mon, 29 Nov 2021 00:00:03 +0100 (CET) Received: from localhost ([::1]:58832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrT9O-0008PC-Qb for larch@yhetil.org; Sun, 28 Nov 2021 18:00:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrT8q-0008Oq-O2 for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 17:59:28 -0500 Received: from [2607:f8b0:4864:20::52e] (port=45575 helo=mail-pg1-x52e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mrT8p-0002hp-6v for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 17:59:28 -0500 Received: by mail-pg1-x52e.google.com with SMTP id c29so2987918pgl.12 for ; Sun, 28 Nov 2021 14:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=j0RdPcEa9nYqnYxLntnMaSyWbAXVAM7PXorwgu5h2cQ=; b=cwu7gMkDP23GK35cqBUXF8ogBbNr+MgTCB6Rj79LtXI6kGibJpYYhrHUe3ZyYu6R7I b6pQ1R4dnwqSjAQCcv4aw9HkNpGjTxHyywqQJshKJyVeuZAceTO3FwemL2ywzS3971xY YFnn3C5xCj5cdUa88AB7gIRar0si4KYlsM3fXxdTrbMDVrjctOkJKF4thVuPEWoxY67p 3JgTyO9/73nrUhH1nTBJxSElXvSqVhKRhE/8DoKGh77BzbKpYrFFlF4VkeFjDdSrKbei 9Qy+MgHvsILN+OU6evk+eZJYmw52GTr1RI3rp0/7vidXGHydEDAq2MOoN6caDkjVw3/e VlYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=j0RdPcEa9nYqnYxLntnMaSyWbAXVAM7PXorwgu5h2cQ=; b=yStyjTS1z9bfqT2nVoCVvP01/mN1ur/AUWKY/3eFWKImM3kveHfVvLqJb/Mj3wnol/ BusnEnMkve5K1n5gOoeMC5R+8chYsdOldfKsiCtUBAvNX4Oj1Sv979ltqT7oa4yKjh6d vKMjUYJrzXGjyHlu0o28W7cAySxyG/JgGVOqYI5mEbCH1iVAwJtIe+7Oc8I2gF4s2hO2 F+ERpR6GAc0DIUx6SKOMoWxLJHlWZJX7gNYRg3kb3ZenEkMpxmyuOSg4DEVWadE0ihJP EM0Q+V7LkryaXOWY4505N8Ogv7v7e/2Bp/1D0tKRHVSo4noKTgRaNHYYO6zX8RKyS8hE pcpQ== X-Gm-Message-State: AOAM532IQdPBu+pO+dNWNa3oNTkXVZ+mJPKQsqjV5Ir/9iF5bobhqtMH 4oNN6zIBVkgxyAVuMzOZX9t14o5ShTU= X-Google-Smtp-Source: ABdhPJxh+a7dHEbjUVdQO2pDqvA7Tgg2FEG+wL3UH+8lbrP5RQCIIJ9aPVeTYXDZiD6d7Ue9v/yVIA== X-Received: by 2002:a63:ef03:: with SMTP id u3mr21376564pgh.74.1638140365520; Sun, 28 Nov 2021 14:59:25 -0800 (PST) Received: from dingbat (2001-44b8-31f2-bb00-4ac3-1a64-0408-689b.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:4ac3:1a64:408:689b]) by smtp.gmail.com with ESMTPSA id h1sm13681848pfi.217.2021.11.28.14.59.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Nov 2021 14:59:25 -0800 (PST) References: <874k7ww9te.fsf@gmx.us> <877dcsoy6m.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.7.5; emacs 28.0.60 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: [patch] fix ox-latex async export bug Date: Mon, 29 Nov 2021 09:54:58 +1100 In-reply-to: <877dcsoy6m.fsf@nicolasgoaziou.fr> Message-ID: <871r2z7uph.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::52e (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52e; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x52e.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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=1638140403; 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=j0RdPcEa9nYqnYxLntnMaSyWbAXVAM7PXorwgu5h2cQ=; b=DewF8twXFHEAkOup3mmwcjfnr0BcFkB4ig6k5G9H3VeOQG4uSWPMf9gYdm7sElvhWKKjJQ /EC/RLnsNAk7BosThR0P77S6inH4+bjmceCS/vwtTytgFhP1Zah+EB7rHthjtONA6Vjz6d xQwyBVF/fDyGTXRVlsTW1SlkkK8+QWadvk8n1iWGUPMtis+VECMUjfNix4Jso07IM0RTP6 vsdjAunj106iOqgk5Th0I9kylqW1bh1OJj+UTVYPXrl+5l2tvUdtL+ARa12VG7caOGZ1em J/+c7Xg7hW/IV1yW36439VOcTiiZLdeCGBqnrADkkI/Z9sRdf2Razu5XjolG0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638140403; a=rsa-sha256; cv=none; b=JyAWZWjlW+sjkVBYli9g04jPh4NbDQgYQs4uK3Z2Fe33MUXKrAcnHeGZCUYZoxUQ5DW2Ed 1j5s4HpFRqNxdBNXQQTzn8Pwsdx915AutAmCWNF1g8F7qcRjZERX2LAUKkJ4UQTXzy3Yrp OJCELEYl2RsRNigxHcauN/eaIm5X0GPtGprRqJ0/kRhnizaNTaStoFNBZgPV63+Uj8xICw SLVfjxNxspeIynKKfyCGkhIumwMOv1zSfMJgTXCmh1iN69mYOZXfflk1ZdZvXMdfeKK0QD nWsvVd3B/OCTeUY5e/ghNHKtpZEPnm1p2y/ArNAiCGFEAlmKY2O+1NF3IIJXLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cwu7gMkD; 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.19 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=cwu7gMkD; 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: A3E4CCF31 X-Spam-Score: 1.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: gN8+fGwHYX3T Nicolas Goaziou writes: > Hello, > > Rasmus writes: > >> When I try to export documents asynchronously with ox-latex, I always get >> a bug in the =E2=80=9Corg-export-processFOO=E2=80=9D files. The last sex= p is always something like this:=20 >> >> (funcall '# "test.tex") >> >> where the =E2=80=9C#=E2=80=9D and =E2=80=9C=E2=80=99=E2=80=9D are mixed = around. This happens even with a very >> simple =E2=80=98org-export-async-init-file=E2=80=99 just loading ELPA Or= g. >> >> This was previously reported here: >> >> https://lists.gnu.org/archive/html/emacs-orgmode/2021-06/msg00422.ht= ml >> >> Nicolas=E2=80=99 fix (replicated in this patch) seems to fix it. > > Applied. Thank you. > >> I don=E2=80=99t really understand why this bug happens to be honest. > > The patch is already an improvement, but the beast is still lurking, > indeed. > Just a shot in the dark which might be completely misleading, but ... I noticed a thread recently on emacs-devel which talked about one of the problems with async calls in Emacs is that they cannot handle user input correctly. All seems to work fine provided the async process being generated doesn't try to wait for user input at some point. I'm wondering if this could be a problem when exporting to latex if the underlying latex process encounters errors and is waiting for user input before it can continue (which happens if there are problems in the tex source latex is trying to process)? It might be worth checking next time you encounter an error if you can run latex on the generated *.tex file and see if it waits for user input?