From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OFZFCUOp8GNKbQEAbAwnHQ (envelope-from ) for ; Sat, 18 Feb 2023 11:32:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0AdNCEOp8GNp9wAAG6o9tA (envelope-from ) for ; Sat, 18 Feb 2023 11:32:35 +0100 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 B1E6E8814 for ; Sat, 18 Feb 2023 11:32:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pTKVk-00027N-IQ; Sat, 18 Feb 2023 05:32:08 -0500 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 1pTKVj-00027C-2H for emacs-orgmode@gnu.org; Sat, 18 Feb 2023 05:32:07 -0500 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 1pTKVg-0002vj-EX for emacs-orgmode@gnu.org; Sat, 18 Feb 2023 05:32:06 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C062F24052F for ; Sat, 18 Feb 2023 11:32:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676716321; bh=xZAcJ226znPeVrGniT5tUZcvK4h6DtGukVKWKAL0wtY=; h=From:To:Cc:Subject:Date:From; b=ZscW/DNZn3lCnFvuAFtlBTRVHDYQEZd2wNxOwPGYaNK23SFBG8H4j41XxkyaEztLC 3zYfe+blKvKQtYNB5htBGSAuoPg+WsrQfOz87ftkLdE40aVblXxoCDeYad2nZZn+d6 KVBiAjPdVgteyT5GUOOOJuU13lrdpO0KLX507oGHC526bjlSlX/lhG1CT1kl1ksZXg W+mUoQC6aOQKUz954XXvYyXjliXAMV66xbq5oTYotqcrA03au9mmTxYeRtFZs6PWHq 2mcvHlxqPjf65wg92RMx89ILTYOdf0GfISuGGz/7ohY9VFx2k1Jvpx+xpwYpTWzI5A DY25FuPVtU3Mw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PJlNc5yyWz6tmL; Sat, 18 Feb 2023 11:32:00 +0100 (CET) From: Ihor Radchenko To: Bruno BEAUFILS Cc: emacs-orgmode@gnu.org Subject: Re: Bug: code block not evaluated during export when placed in SETUPFILE [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)] In-Reply-To: <20230216235224.7g5xdlkcnw2z4k3n@settat> References: <20230216235224.7g5xdlkcnw2z4k3n@settat> Date: Sat, 18 Feb 2023 10:32:38 +0000 Message-ID: <87mt5bl0vt.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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_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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676716354; 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=jcOhbOLaOq9c3tDn+R1fCoot8Sm6OPXzSFfiQhbNONY=; b=O3SMavhq6iu+IITcqW6blGgKAUO/t0r2y+BCRgRZQyfef0O2PO6p4vfgp+FlHJCGxO/B+A FvoXrDsbJqUvGfKMmQkm42GcUXQFAoLk1hwr6R26gbeex6HoWOqnxeOkhYyd7HtUEmSv/A /h9FqwbB8/CpG/sxyx9QV3hPw0eiOKDPvkd4EKlbES2lFXlWoeeAZBx/Wo1WhDrwFVfO05 PoAzMbF/6Lo2jhK179suBlyzpx85CyUGA1yCeaXH//HagEYb5YTYIQ8Lp5fYUZYHupGidB zmf1E0EAPwTXcT9pj3CwqzOChMFW3azpO1TC/N04ckaFt0Oi7p7WvVSCIp78Og== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ZscW/DNZ"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676716354; a=rsa-sha256; cv=none; b=AKx+PEvXEDDPOjcYrB8KnsdAeMZ8oPvO2q4LMK0zeYVQeug/ZbWR8aO79t32s34tyRI3Io YiixGSpE0tGv1TSRYUGcTenQ69jCkl4p7hEvKSxUEx4YgCgrEZHWTpzhEHOUoNQS6HxCJV uW6i4iaHwlKJ10Bd6E5622N92+XDEEM7iV5lCFXswCRWoIx3fkoxRfiH+Tl4jidkbKcOIb BJNnUo63ggF4v3WmhJyulNbKxNhLL06VcWC6R+dQnklyoXrm+nYeBVu0dm1b2RZzkXUNuR S5Qrb2qimHv55Av2nqTv+hOF01s92XrMZtcbMi4CTAkPqMlxeUdIQKXdGQVIKg== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ZscW/DNZ"; dmarc=pass (policy=none) header.from=posteo.net; 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-Scanner: scn1.migadu.com X-Spam-Score: -4.61 X-Migadu-Queue-Id: B1E6E8814 X-Migadu-Spam-Score: -4.61 X-TUID: I+bpB+98xHml --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Bruno BEAUFILS writes: > In the org manual the following lines can be read about #+SETUPFILE: > (emphaze is mine): > > =C2=BB Org also parses and loads the document during normal exporting pro= cess. > =C2=BB Org parses the contents of this document **as if it was included**= in the > =C2=BB buffer. It can be **another Org file**. #+SETUPFILE is only parsed for export settings. It is not actually included. I admit that the wording may be confusing. To actually include the document, use #+INCLUDE. I tried to clarify the manual section in the attached patch. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-manual.org-Clarify-what-SETUPFILE-does.patch >From 64cc230e39378d7c1fee4954f415358ae8055c4f Mon Sep 17 00:00:00 2001 Message-Id: <64cc230e39378d7c1fee4954f415358ae8055c4f.1676716311.git.yantar92@posteo.net> From: Ihor Radchenko Date: Sat, 18 Feb 2023 13:30:39 +0300 Subject: [PATCH] org-manual.org: Clarify what SETUPFILE does * doc/org-manual.org (Summary of In-Buffer Settings): Clarify that only in-buffer settings are considered in SETUPFILE. Other contents is ignored. Split the explanation into multiple paragraphs. Reported-by: Bruno BEAUFILS Link: https://orgmode.org/list/20230216235224.7g5xdlkcnw2z4k3n@settat --- doc/org-manual.org | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index 5b6633417..60c062921 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -19922,15 +19922,18 @@ ** Summary of In-Buffer Settings #+cindex: @samp{SETUPFILE}, keyword The setup file or a URL pointing to such file is for additional in-buffer settings. Org loads this file and parses it for any - settings in it only when Org opens the main file. If URL is + settings in it when Org opens the main file. If URL is specified, the contents are downloaded and stored in a temporary - file cache. {{{kbd(C-c C-c)}}} on the settings line parses and - loads the file, and also resets the temporary file cache. Org also - parses and loads the document during normal exporting process. Org - parses the contents of this document as if it was included in the - buffer. It can be another Org file. To visit the file---not - a URL---use {{{kbd(C-c ')}}} while point is on the line with the - file name. + file cache. {{{kbd(C-c C-c)}}} on the settings line re-parses and + re-loads the file, and also resets the temporary file cache. + + Org also parses and loads /in-buffer settings/ from the setup file + during normal exporting process. Org parses the /in-buffer + settings/ as if it was included in the containing Org buffer. The + rest of the contents of setup file is ignored. + + To visit the setup file---not a URL---use {{{kbd(C-c ')}}} while point + is on the line with the setup file name. - =#+STARTUP:= :: -- 2.39.1 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--