From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id RtdxHzV1/WSnCQEAG6o9tA:P1 (envelope-from ) for ; Sun, 10 Sep 2023 09:50:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id RtdxHzV1/WSnCQEAG6o9tA (envelope-from ) for ; Sun, 10 Sep 2023 09:50:13 +0200 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 130113E708 for ; Sun, 10 Sep 2023 09:50:13 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pOM+kP6r; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694332213; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Ei/HluGv3Zn3PIiLev5j1rBijbqpXlQZNhFXP+nULDQ=; b=OBOkjk8oEANn0Fajxqwvu4kvhNjBCGxxvJIdnRsfX6/OSXRCQK1US8fLBX2SthaAM5hrQd hIToJ+XpIXU/r1nAxPid5nHziAaC+ArDLNb/2ZvaH3lTq7bkx3wjiLJeklSs4t+/4XovgM EfJdtDtGlD2Y0WbfW665dcrfFSfJn6v/MS3s8D03DRHDahy7mzKWfTcEUU8pQML9/rcw90 mKbsVFSWEIXLYXSbj35mZHG2Sq/8zbn/NONTQLTsvIthq+Tkzz6qsEeT9w5de/J31+cpHw ptBA96vR3PwOB6EvhJH8cFUMAvPIgK+jlsCWLnoDA/c02UGTkjInG6jz6+HLhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pOM+kP6r; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694332213; a=rsa-sha256; cv=none; b=K9Hi+/nvx/NOLj5t+tRBhotnN6FbXuZMFLvfJzvGER1iGBlR2mQ0tVzUtw2oYREAApZ7PL ok4zJ7ydKooIruyJvy8v47j5bZVWJj4O/7ck2huCTajOQnpBVl0wNu5vzjpN5f7+tUYHOG aWGwVWjRS0PcTU94ZoCOs2jOMnde+7kHOx6fqOKGXA/bvF9my+0pmJd0yGSwK9R3/fftIa Zme1rGlY7m4eAQDnNsFALlYSNORDSenrId0y4gTJVausN51xKqAajPQmrLvDvRWnO68AC7 NhExix0n43f3kxNfD7+BEFd+dZ1eg3HTAs/OjnpLIkaaZ0wvZnGV21pa0AqQYg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfFCF-0008C3-WB; Sun, 10 Sep 2023 03:49:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfFCD-0008Bo-0D for emacs-orgmode@gnu.org; Sun, 10 Sep 2023 03:49:29 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfFC8-00050f-Nk for emacs-orgmode@gnu.org; Sun, 10 Sep 2023 03:49:27 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 775F5240101 for ; Sun, 10 Sep 2023 09:49:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694332162; bh=N2dwcW+sL2Vpg92KBcEW9U2ai8+93+FKHleZV7V9fCg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=pOM+kP6rPv3TqRqZ9ScqjqtHI3dqSS8YIgU3z3h9ued+bBq1zQb9C5Tqb4u9BE/9Q Pmkl03YdEGP/w8QznKBYVYruEmO7ku35m+YugbibdBaqWnkuV7dx2O80wMgWZTzfba M6g2UITNqDGzXrA2YbbKZUzETEScezX1c9QXnEfo8hlNl0VYA/JFKzf23Hucd5aqKz MJEs44rE0DIfRvVIOHhLbzJlDl4UzVGKVTB0H7IZCGg6EWFbiHemJ3xpRiKnzufbn+ bD4r74wH4YumEcpXLv1P1xVVgNCBslaaMCVXbK157E0Acq7NSF4EPeHTkxurUo8XRk nIURe2gU8QPSA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rk26n5h3tz9rxD; Sun, 10 Sep 2023 09:49:21 +0200 (CEST) From: Ihor Radchenko To: "Jorge P. de Morais Neto" Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-export-with-broken-links not respected for (org-icalendar-combine-agenda-files t) [9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)] In-Reply-To: <87v8cjkol4.fsf@disr.it> References: <87v8cjkol4.fsf@disr.it> Date: Sun, 10 Sep 2023 07:50:22 +0000 Message-ID: <87r0n6jwld.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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_H5=0.001, RCVD_IN_MSPIKE_WL=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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 130113E708 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.43 X-Spam-Score: -6.43 X-TUID: AQXyuolMDgpo "Jorge P. de Morais Neto" writes: > Hi. I am on Gentoo. I wrote the following Elisp function: > > --8<---------------cut here---------------start------------->8--- > (defun J-org-icalendar-agenda-no-babel (&optional async) > "Invoke `org-icalendar-combine-agenda-files' without babel, maybe ASYNC. > > Also, make broken Org links just get marked as such in the > output, instead of stopping the export with an error." > (interactive "P") > (let (org-export-use-babel > (org-export-with-broken-links 'mark)) > (org-icalendar-combine-agenda-files async))) > --8<---------------cut here---------------end--------------->8--- > > When I invoke (J-org-icalendar-agenda-no-babel t), the async export > errors out. I determined that the inferior Emacs process does not see > the let-binding (org-export-with-broken-links 'mark). Is this intended > behavior? This is because async export code only tries hard to copy buffer-local variables (`org-export--generate-copy-script'). Global bindings are not transferred. I am not sure if transferring global bindings is something we should do. The existence of `org-export-async-init-file' implies that user may want to use different settings from the Emacs session. If we start transferring the full Org-related Emacs state to async process, users with custom `org-export-async-init-file' might be affected. On the other hand, your use-case clearly shows that the current behaviour can be confusing. So... Confirmed. One possible way to fix the confusion could be adding a new `org-export-async-preserve-global-state' variable. When non-nil, we will transfer global state in addition to the buffer-locals. But I would like to hear other opinions first, if there are any. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at