From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CKyEJpGu0WDwMAAAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 11:34:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gDFFIpGu0WDZNwAA1q6Kng (envelope-from ) for ; Tue, 22 Jun 2021 09:34:09 +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 DDDC418BD9 for ; Tue, 22 Jun 2021 11:34:08 +0200 (CEST) Received: from localhost ([::1]:41196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvcnH-0000EW-GQ for larch@yhetil.org; Tue, 22 Jun 2021 05:34:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luuj3-0008Jq-Ag for emacs-orgmode@gnu.org; Sun, 20 Jun 2021 06:30:49 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:41742) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luuj1-0001hI-Bh for emacs-orgmode@gnu.org; Sun, 20 Jun 2021 06:30:48 -0400 Received: by mail-ed1-x52c.google.com with SMTP id n20so14826523edv.8 for ; Sun, 20 Jun 2021 03:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=nvm+L/BGCNv+XBnDw0/SmTAzADjvTAVizftJU6dvRuk=; b=gpzrw/d8vXaWmlu2+ZARbSI9Y30PyxUXko0RkAbVdL77S6fLuselFrNYQ2S4s7xM2+ zOaP/9KBc+DSZCWbyFsO2wp4eDcMzjnF75U8N8aP5tv8umt3/R8zzd3Qg0mKu29D+NW5 Xer94hDl9nbFwlvFLfLlitzy0CMLdwsDLCuVOEOx41KYt6oX4DWeBLLYcHiNKbTFc34Y v+KOF1Nwoo3XBNkwNLSgKNdE/ASmrZO2al81dVLFHinOLCfzVTMzh32GHmIPvwgZD+oa 6pGMpJFAPUd0P7XI9mQ96g88fSSXPGs/FOHeGuqZfwB12RCmDDtpcJcQ+RxcEnXenO00 qyUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=nvm+L/BGCNv+XBnDw0/SmTAzADjvTAVizftJU6dvRuk=; b=kINcCGEt3O/gBBe43LDgDfeulg6Wo6IBHovzTrywZj1X+nNltWTIyG0FHi04XmE8Uy IZXWtVCauty/f20JffD3ffElsVZ+bdKzcveKAtSy3SN/sxhb5//41UWeButJeIMMc+9S 9ko4h8Ofler1rNrIv4E5dc6H0aSX/E2vIkwvCb6UbiQ1nX2pN0V/1QB+xP4Ne5RrvFVD rYTs2Js8cVm4ZN8OcZe75E0n0QQno9FHvhSiGH+7kb6KxsDXcyH9IQcCvTtj+ZH/84wr 3SLee8emrdg52tmQlOBxlg145F229rXi03L3HFqYDhWSYnVCFRRCOKC9QVX1vwhdNMuR o5xw== X-Gm-Message-State: AOAM5335Et3xHLpSO9CRoLs1qjEQHyQKr7opJHVHucP/8ntOh2EDZAtP 7Hu2tq+NmuHAJlmab1TbfW9ZOwwVGVqa75rb X-Google-Smtp-Source: ABdhPJzpZ/V1avtbTGJqeiScO9rJgJO7jiT4begmYKRmCqt0EVmlLy3s73RKEWhjS6gR317bAezVbA== X-Received: by 2002:a05:6402:3138:: with SMTP id dd24mr2066844edb.92.1624185044871; Sun, 20 Jun 2021 03:30:44 -0700 (PDT) Received: from mbp-2018.local (ip185112.wh.uni-hannover.de. [130.75.185.112]) by smtp.gmail.com with ESMTPSA id s20sm6439518edr.50.2021.06.20.03.30.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 03:30:44 -0700 (PDT) From: Illia Ostapyshyn To: emacs-orgmode@gnu.org Subject: Bug: Org async export fails with invalid read syntax =?utf-8?B?4oCcI+KAnQ==?= [9.4.4 (release_9.4.4 @ /Users/iostapyshyn/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] Date: Sun, 20 Jun 2021 12:30:33 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=ilya.ostapyshyn@gmail.com; helo=mail-ed1-x52c.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-Mailman-Approved-At: Tue, 22 Jun 2021 05:33:02 -0400 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=1624354449; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nvm+L/BGCNv+XBnDw0/SmTAzADjvTAVizftJU6dvRuk=; b=AODjnynLRRNvy/4cV8mIs0cM2NGDro3wjEBYnvGTJDAVMJ8pl41tXdq++yr4xOvc95vcGH jebBgTcQ22UJhauk+WT5jy7iEL7FjwTKOoqo8vEIpgpNNETB3YEKPDnG2pohCwbaxc7OSJ pf4+ImyHZryfP2F4fkn2rQ0zZf9c2D/eXRt9F6UKH3oanNTJz83wp0L7b1qP0NNkguMoB6 fKAYvzb6EPMY/BEFVhpslpcdzqkEX/xlheOc5Zb0rXnbz7wcusljh9tZFWegEbbIKl9YTg WyTTl5G7SWc2CaH3cl0JEI/OaEP9ESswE/NCFc4RF1DdElAqCS0oDmxC/x9kOw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624354449; a=rsa-sha256; cv=none; b=cH2b/yUL6Nqd9kiB29lZKibRGub1Eo9VTZxv2AHnyCakZDb3l2t1vjUEVbUjIdbhEi+DFU dpjnPnm49yiUnR0fxxoVMXEVnKdOzpFLr2D+yWGmBLv4xkGbN4XYO8YS9I1nbWUQc1mdCu iIzo7DS0IShj6Eh8ptd9i10giDl6/5/HqACb53lpxUfj66kWR+5NCtWTX+bCj4u+QZl9fc z4y8ALrTZTSrX6PW0ReJ8EqBbKEGFiu6cvN1OJ/g/KITA1X7RWV857bd+y2RUPG/GkNKOK N4J7ymPSUSX/EsFodJ51ft9mig3He0vhTfMWYyjGzSbEVD83zZFfgy8hmIH39A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="gpzrw/d8"; 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: -2.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="gpzrw/d8"; 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: DDDC418BD9 X-Spam-Score: -2.13 X-Migadu-Scanner: scn1.migadu.com X-TUID: G+xHSAMMrt1s --=-=-= Content-Type: text/plain When exporting asynchronously with an essentially empty org-export-async-init-file, the process fails with this backtrace: Debugger entered--Lisp error: (invalid-read-syntax "#" 1 0) read(#) load-with-code-conversion("/var/folders/1q/6syg63894h5bqlwp2jdh8r440000gn/T/o..." "/var/folders/1q/6syg63894h5bqlwp2jdh8r440000gn/T/o..." nil t) command-line-1(("-l" "/Users/iostapyshyn/.emacs.d/org-export.el" "-l" "/var/folders/1q/6syg63894h5bqlwp2jdh8r440000gn/T/o...")) command-line() normal-top-level() I have tracked the issue down to this bit in org-export-process tmpfile: (or (ignore-errors (funcall '# "paper.tex")) ... Read doesn't like the '# syntax, seems like it should have been #' instead. I have quoted the post-process lambda in org-latex-export-to-pdf (see attached diff) and it seems to have fixed the issue for me. However it doesn't seem like a proper solution. Emacs : GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.5.0, NS appkit-2022.50 Version 11.4 (Build 20F71)) of 2021-06-20 Package: Org mode version 9.4.4 (release_9.4.4 @ /Users/iostapyshyn/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=ox-latex.el.diff diff -u --label /Users/iostapyshyn/emacs/lisp/org/ox-latex.el --label /Users/iostapyshyn/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-latex.el.gz /Users/iostapyshyn/emacs/lisp/org/ox-latex.el /var/folders/1q/6syg63894h5bqlwp2jdh8r440000gn/T/jka-comShObnq --- /Users/iostapyshyn/emacs/lisp/org/ox-latex.el +++ /Users/iostapyshyn/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/ox-latex.el.gz @@ -3633,7 +3633,7 @@ (let ((outfile (org-export-output-file-name ".tex" subtreep))) (org-export-to-file 'latex outfile async subtreep visible-only body-only ext-plist - (lambda (file) (org-latex-compile file))))) + '(lambda (file) (org-latex-compile file))))) (defun org-latex-compile (texfile &optional snippet) "Compile a TeX file. Diff finished. Sun Jun 20 12:22:50 2021 --=-=-=--