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 INdVML3CBF/pSgAA0tVLHw (envelope-from ) for ; Tue, 07 Jul 2020 18:45:17 +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 4LFuLL3CBF8xNwAAB5/wlQ (envelope-from ) for ; Tue, 07 Jul 2020 18:45:17 +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 3FC19940655 for ; Tue, 7 Jul 2020 18:45:17 +0000 (UTC) Received: from localhost ([::1]:45892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jssah-0003wy-7N for larch@yhetil.org; Tue, 07 Jul 2020 14:45:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jssYx-0003w8-89 for emacs-orgmode@gnu.org; Tue, 07 Jul 2020 14:43:27 -0400 Received: from mout.gmx.net ([212.227.17.20]:34051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jssYv-0006qY-FH for emacs-orgmode@gnu.org; Tue, 07 Jul 2020 14:43:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1594147401; bh=ompkWeHH8lXR+/tbxi0CIa5QOZlP5OfjmyY59Xs1jXk=; h=X-UI-Sender-Class:From:To:Subject:Date; b=XtidWU9p/yO1JqSmhT0nAwElkEcXBWbRTcLJXbwkTdY4rD/3cjfvi2CeLCX+mQqje v9bGscab2BD1HMjArpj8EWLsBMcdy0BLWjknZepdasvG5ZeNaqf44OI4YtQcy/Ir9m LJvVwgDrx0fZAtaV7bex9zXse4drH1E7KC0OwE+E= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from stella.c0t0d0s0.de ([46.114.111.87]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M6UZl-1jzmS02VRZ-006wRh for ; Tue, 07 Jul 2020 20:43:21 +0200 Received: from Stella (stella.c0t0d0s0.de [192.168.42.1]) by stella.c0t0d0s0.de (Postfix) with ESMTP id BFA061811A9 for ; Tue, 7 Jul 2020 20:43:18 +0200 (CEST) From: Michael Welle To: emacs-orgmode@gnu.org Subject: org-sbe and code blocks in a different files User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) Date: Tue, 07 Jul 2020 20:43:18 +0200 Message-ID: <877dvfb1yx.fsf@luisa.c0t0d0s0.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:fcLeSnkqtUnNkISva5Ivha2MPkYMFWTTe1yhSbSZicJKKNU7n69 FhhVRIhbw/U5VGObA9ebRIG5YfjqZaJY0Jd0p9cOazbJhzzNnObhqt8INJCzitiFXtd6wPz XvAGB2/GhUFnc8yaWLcoFD2n6IAhKCAvOOIuPz4+kPQtJKlWEs4Cc3lW4SgnxFoX5PB+2Ep A9I948W24z/EDuctRS9Dg== X-UI-Out-Filterresults: notjunk:1;V03:K0:3GLsX/NPPZw=:r4G5QFdm0RMKpUJbJ5VbUW JNi/BW7NpS7YRDjijaEMMNNlREi/JCJVtfJIajjZmotoxTvSSD4KIwk791nLmmNq3Mp2maStG 9be8VqOsMl1x4nCm8Wb44rJoJyIwdrOlzo6BH/7SmFFjsHjQ/rNCcAPoEsi97wzs73u01h0xe jjtHSzesDxSHWBL/A/8aySFdWuV5h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WiLst2hVi5Q== Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=212.227.17.20; envelope-from=mwe012008@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/07 14:43:22 X-ACL-Warn: Detected OS = Linux 3.11 and newer 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=_AUTOLEARN 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=XtidWU9p; 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.29 X-TUID: lZSxQwvIYkyV Hello, I can execute code blocks in different (separate?) files like this: #+call: ../lob.org:convert-time-range-to-days(range=3D"<2020-02-19 Wed>--<2020-02-21 Fri>") That is great. Can I call the same function from a table function? org-sbe doesn't support the above notation extended with an Org file name, I think. Second, I try to concentrate useful reusable code blocks in one file, lob.org in my case. That works. But I feel that I need some of the elisp based code blocks as code blocks, that I can execute, as well as separate elisp forms that I can eval from elisp code. How to deal with that? Ideas: Having two code blocks per function: one with the actual elisp code that can be tangled and a second one that just evals the form and can be used as a, well, code block usable with #+call? Or should I give them names like func and func_code (that's the one with actual elisp code) and write an elisp form that grabs all code blocks named *_code and evals them at start-up to bring the forms into the environment? Other ideas are also welcome. Regards hmw