From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 WEDFLjlU7WOhnwAAbAwnHQ (envelope-from ) for ; Wed, 15 Feb 2023 22:52:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gEvJLjlU7WOJ1gAA9RJhRA (envelope-from ) for ; Wed, 15 Feb 2023 22:52:57 +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 84CB72B7C3 for ; Wed, 15 Feb 2023 22:52:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSPgs-00085v-5T; Wed, 15 Feb 2023 16:51:50 -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 1pSPgr-00085e-4X for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 16:51:49 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSPgp-00053C-Gw for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 16:51:48 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pSPgl-0000CR-GA for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 22:51:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Nick Dokos Subject: Re: Cannot expand macros through included org file Date: Wed, 15 Feb 2023 16:51:34 -0500 Message-ID: <87ttzmy4ux.fsf@alphaville.usersys.redhat.com> References: <7d032f82-9d16-edff-b548-3c01f6ea68cb@housseini.me> <0102018656c98091-28c05c5e-9dbd-449a-8af2-dbe7908056c4-000000@eu-west-1.amazonses.com> <877cwi4q13.fsf@localhost> <0102018656dabb86-9eab0bd0-639a-4de2-b6ab-c94279a92f0f-000000@eu-west-1.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:pV/q8GcEelcGW0GoZu8s3lOutAc= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676497977; a=rsa-sha256; cv=none; b=pyyTZdw0BtUYok+/ehfL1dt4iZstaJqt/RscG85MDbIMNv9LHflo41jZvQZLiogRH5eIw7 zHltrYsSJ/kZuiMtmdNBLGbEHbUAwraJF3tCZXrxf1qpBv0crMEGfXJ11sVI8v7hruuNPl xZ0WvpsAj4MO4APpvJYq34YVi5129hbehHfsp6WHAtiVeB+iWuqOQ+a37PB4u6szy2GosD EXRWtM1sh43ucK3OhG15UP56odGS5MjQpG9vCL0fpHY0jLQ9Uu3QtJNXn8nv1mkLHGa8Zj C4VeKrP1smtnzbfaGU0QO19lRp665sS9KVeuUYadp9wr/cuE3pbN0sgiCEMUYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676497977; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=S42qUk1cCJsQ1YoB64wnwH02PiDsu+Jlb9572wOIvXo=; b=N2+paqOf/5mwlDxEn5xJm+V6ZnzEyHmfXEjruawSSf1ewiwWNWDiFVCaXXVynUtCHmjBL5 G5Y+LKskgrfLhJmXshpTH/wln+9jEKFUeI19Tx/BjrtBjww9fuVOL40HjqXvMLoUukbfeT V90YkRQBqTzBjEGRmHYHQ1TGPoPI3dLieV3OwiQm9kuQrgVvv7/P8TH4PJtWZg/7rYiWMH 3J832iuW2UL0NCAhXOVN5opoz5sBvXZd9lelEwoWS9UV/nUV0cCt+JBXsf4QvVZQCyp+Qv S2gDPaDkLsYcCAIrw+qEVj8RbyDLmmTR16hdTiMoq7iOJuSmtZsqRuXte9S0VQ== X-Spam-Score: 2.58 X-Migadu-Queue-Id: 84CB72B7C3 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: 2.58 Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) X-TUID: rjwmRnZbHhm5 reza writes: > Hi Ihor > > Thanks for your quick reply > >> What you can do instead is creating a named Org paragraph with macro, >> like >> >> #+name: year >> {{{year}}} > > I tried this approach but it does not seem to work either: > > "template.org": > > #+TITLE: Report > #+NAME: year > > {{{year}}} > There should be no empty line between `#+NAME: year' and `{{{year}}}'. There is a `+' missing at the end of the python code block. -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler