From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QLfSOiPDBl9UFQAA0tVLHw (envelope-from ) for ; Thu, 09 Jul 2020 07:11:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cJqvNiPDBl8BIAAAB5/wlQ (envelope-from ) for ; Thu, 09 Jul 2020 07:11:31 +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 64D5394077C for ; Thu, 9 Jul 2020 07:11:31 +0000 (UTC) Received: from localhost ([::1]:48636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtQiP-0007g9-1A for larch@yhetil.org; Thu, 09 Jul 2020 03:11:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtQgV-0007g1-5H for emacs-orgmode@gnu.org; Thu, 09 Jul 2020 03:09:31 -0400 Received: from mout.gmx.net ([212.227.17.22]:50981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtQgT-0005jX-78 for emacs-orgmode@gnu.org; Thu, 09 Jul 2020 03:09:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1594278565; bh=Ht9ps53rLmurrDu3E2jeyXaqGun8Ckvf33JW1QptdDk=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=cCeZhxR2d95HApeo/YPa0BEqoY6EHkJkJqt5XNRkmmL6Amwt6pOsukNiSUINesWZz x4/UtpTrgVzT8oMbXXwySOtK2LGuvexKFRU8tewBTtX2Ych8e7GUXeLxqWJy+QVh/I /AOWAgoRQ7sd4TU2Gio4kPOPiYML0CIpBy7L/ov8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from stella.c0t0d0s0.de ([194.95.66.1]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MLi8m-1kAxZF3Fo0-00HgFb for ; Thu, 09 Jul 2020 09:09:25 +0200 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id 03713181212 for ; Thu, 9 Jul 2020 09:09:10 +0200 (CEST) From: Michael Welle To: emacs-orgmode@gnu.org Subject: Re: org-sbe and code blocks in a different files In-Reply-To: (Douglas Perrin's message of "Wed, 8 Jul 2020 16:29:24 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) Date: Thu, 09 Jul 2020 09:09:09 +0200 Message-ID: <87imexdv1m.fsf@luisa.c0t0d0s0.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:3qpuNKlUTesML/BsbzXwWR66gxzC8BN4qnJh5nTmQ1goI/8z3EN DZ13brv3rQuARB3EAXQ+uiw8XTdu/z0gPaZxcfvZ0mlpQSBMjnu4oEv6pAjBevJCYYz4XXT 1vI/XvWiagEOjIMwUpF1eC6whd3cfqVQ54TOPrvh8M2sbwVqsyDAsc8il9I65bR6ofAshYV Mecj0eOmCcUbjOqZgseaQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:Y9a0OoE2A1Y=:zw51gqcNZ76X9KfcrtddyU g9UAlKqAZ/OtMrDsv0AoIe5NpmQMo8ye5nJyM1vEM6Lquub1PRLu8MSG7nZnR1GML6HiNnnhe 4+a3bpscNqJZDfSZ+ZGNJ8i4OU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4W XmpZbt0wJ/D3/7yKSrZ7P3BtEZKthgYGIu8IskzmsgoC1xHa3K1BtjvIybK4EsiLu10+WnABJ N/bapShIG2u/qFhOSgZrbXexkl8/T4Gm6Ah1oaQ== Received-SPF: pass client-ip=212.227.17.22; envelope-from=mwe012008@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/09 03:09:26 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=cCeZhxR2; dmarc=none; 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-Spam-Score: -1.21 X-TUID: Taa+9XsfzvJk Hi Douglas, Douglas Perrin writes: > Hi Michael, > Maybe I am not understanding what you want to do but I use > org-babel-lob-ingest/org-sbe to execute blocks from other files on > start-up like this: > # Local Variables: > # eval: (org-babel-lob-ingest "Template-Loader.org") > # eval: (org-sbe "Init-Template") ;; the name of a block > in Template-Loader.org file > # End: > > I assume this means that org-sbe can see the block names from the other > file. But I haven't tested the behavior with #call just executing elisp. > Doug thanks for bringing that up again. Your example works, of course. After further inspection I think that variables kill my example: This code block comes from a file I processed with org-babel-lob-ingest. o-b-l-i returns the correct number of code blocks in that file and org-bab #+name: boing #+begin_src elisp :var range=42 (message "Hello, crude world: %s" range) #+end_src This comes from the file where I want to use the code block: |------------------------------------+--------| | <2020-02-19 Wed>--<2020-02-21 Fri> | #ERROR | #+TBLFM: $2='(org-sbe "boing" (range 23)) That fails. After removing the variable from the code block and from org-sbe it works as expected. It works as well if I copy the code block including the variable into the file with the table. Might be a bug or my own stupidity? Regards hmw