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 wBBnLG1JB1+rfQAA0tVLHw (envelope-from ) for ; Thu, 09 Jul 2020 16:44:29 +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 qHxEKG1JB1/BJwAAB5/wlQ (envelope-from ) for ; Thu, 09 Jul 2020 16:44:29 +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 639E69401CD for ; Thu, 9 Jul 2020 16:44:28 +0000 (UTC) Received: from localhost ([::1]:49170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtZes-00049r-RJ for larch@yhetil.org; Thu, 09 Jul 2020 12:44:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZeU-00049Z-Fd for emacs-orgmode@gnu.org; Thu, 09 Jul 2020 12:44:02 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:10812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZeR-0007JO-K9 for emacs-orgmode@gnu.org; Thu, 09 Jul 2020 12:44:02 -0400 Received: from pps.filterd (m0173167.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 069GZw3S006785; Thu, 9 Jul 2020 09:43:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=mxIaO3g9kVLRX6jlpA3pOZ+guAtm1DeJctWtU5DDC+4=; b=Xwwli9tCYbjHLY7gJlpbfXft3BCd6luj8mwN5htI0dNYjetrH+C0BUvFZNnbfmQzDnUE JZXlFrJGg+mCw/QJt2NM3rNNIFBU6bUgimoWKqOJD5TPncbte5utvNnmZCntmWqu47ZU c3J9N/1Rka47xPpuToZbo5LFRJBcyR1B5zFPvgJS8AiAcpXihqg20dv2xsTjuKjI5dFn AMZ8j9g5Q9LHarEFCs24YCAp2eDTNBM+a5DXn3X9J9LwKIPSjbgpObjJYR8OHf2CPnXC OjFUfQ8etLYY/hCgDsybcZ2g4e80Ml9tXBLbRntHVckHhmeoJ+ezhKQAMK5JBbVoe53O sg== Received: from secdlpezp03.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com with ESMTP id 325k4mj5fj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jul 2020 09:43:49 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WIlt8B44S8/0X3JruUQwe9YzoXWoQfr80wcFySZ7RXNw755FL5XByolUfZ9/ySa6KbhZuYC1CICXH/1GWgf9ZcYEiEWRrWDky8DT1qi2vWCCHmGjFYFKV+fANf+l3GSzNCyZ7J9K54aEvA441Ji7e3iuiNuzRrDJnxwglGGAvMDc5Q1SFkW6PLKNGvayyZetY7M+X4paMXDO14cnBP5rpAGnKc3Hnmf7CPAaaZ5L2pp8O2j3ay944whDWZcIsgbtL4QdWZ5c+EuZ+ka3PlfJV5H+HO3N1NwOyAxx5WhACWheF4E+fcuT7wtwNjVCVDj2Gpi23NB1eOQdtx7VerNn0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mxIaO3g9kVLRX6jlpA3pOZ+guAtm1DeJctWtU5DDC+4=; b=OLUAMc7ptaLUPptqzsv0rt5M52mwLsCn7AJVmI/mxxAtLFFY41u5spQTg3FWpvOqHWjnKzN6ND4idaJjSyS/+Tesp+jXUd5B04ogF3+ki8/d33X/4EVOfCLYb4yy5/YHotSD1UEQ6Wm95bGhKGQzmVVMXWqnsn3lUXxgCwrXRppK3xN8wYG7DGcVURjx8ICZipS2mY83tVOn7TV5luwYfzyPoyUSweAU8lxl7zD1/lDe0+/RUYUdqWxmohgLX3OdHtfOsD95aeXN2EePcbnqrm9Sh5/fy8YT59ULwn/04ARBM30KtLQYxpzEY+HWMTLPmAi+hi28BoCPLGtcGNP66w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mxIaO3g9kVLRX6jlpA3pOZ+guAtm1DeJctWtU5DDC+4=; b=bh6hVaYqzhPTrUe9WSQYWpJCTMAFioSkpwaUVKBICHUtfWtL3jOZfB8gb7Ie4PeOjmJyw46eUpCROg88HJne1vHueifrtVKMbJ+gh1NhsnAw+rcZSJLWqYlFeT07hTnJi2SzYWZgdb5cVCQSMh6Unaw8EiyBbsu9IEEQ0gkjFeU= To: Michael Welle Subject: Re: org-sbe and code blocks in a different files Thread-Topic: org-sbe and code blocks in a different files Thread-Index: AQHWVhAeSvSEUKRZ30+dQt5HVZOoAA== Date: Thu, 9 Jul 2020 16:43:47 +0000 Message-ID: <4D4F25E2-68A1-4BC2-B0E1-8D2044A5E318@health.ucsd.edu> References: <87imexdv1m.fsf@luisa.c0t0d0s0.de> In-Reply-To: <87imexdv1m.fsf@luisa.c0t0d0s0.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:b9ca:1529:589b:48a1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 37e34d81-0e8b-4b1f-c9ee-08d82427408f x-ms-traffictypediagnostic: BYAPR19MB2790: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1443; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: DJYhqmTZKEWjaZKRagDZhp2rOnH8piTQXCHl73L3i8N77vCaDKc5jpWsD2xcVe91kz/GByMCFQuxqsblXrO0v62tbc3hR6TfZoxWJb26PESltnMQfzkl5t4Y95ajD0qv89A6qT4dc1TGi21fiMH9gfBqnKwfdCQIWRHtIaqsD0Z+c19A3TxCwmpvhLLEarn18vnhuqYXgbSgTAS1mUtymn7TJqikm9yFkkHAuGyeUiuAPkl1DcuMb+fhd9DneE7DSMeaZVBB9fW1GCGXDqqjP5EcQ5i5zoUl6ij2zCPwh2sx7w+GC3YCH1klU5mtN7zIc1KeFh7BawrZQMmv86mh3w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2888.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39860400002)(376002)(346002)(136003)(396003)(86362001)(186003)(66556008)(66476007)(64756008)(66446008)(2906002)(66946007)(6486002)(6916009)(2616005)(83380400001)(53546011)(8676002)(6506007)(786003)(75432002)(6512007)(478600001)(76116006)(5660300002)(33656002)(4326008)(8936002)(316002)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: YO/h62SdF64EOdv7H3g9HEoNGHoI3o0SNb+OR/74U7es0ByyKn42GhVP+84VLwwba1LJi0MdG7KhVmz9TnuLgGTCniyWQs11UCzNHKi+CfA1MIfPnUUlgLsDpGNNe4TQZiwIj8hkeVSXHuKGnD0KIkd2gQPLCsenHm1ZQjQ6Lx5MqWv3Ixrq+g+ZwVojwhZdH5zn6r1ajhmYTr5BRMJukyS4foH3xfnXtVWtjXF9how6cZZaIdzcvhwIz9QyLGYYR05SwWiMia4sse/FlO3gm5g6i7NaiNnCYZze5doUm1TI8k4YXR8vj/E5BUbXXuqfwuH7fQF93+219bwNS4/eRypQodLKnGWdvDVsJ7GDki7ro7jd09o92KfcVxEcU46ubJ9LBrnrxtWqotzcv50ohBDKFsySEpeyzYHI64GVj1OUpdEay67nZ2CANUWTee7GLsHzylCE3Id0tq4vxRv/LoCmrMZY/MBH3OF3lIF2+rou70kinoj2yRVZu55EXv7neK8qz2ujA2FIEt6YL5lVqDUQ4X3tejzUrMrkjELX4rc= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <1E5ACC564A3CF84EA394DDF015AAD3BD@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2888.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 37e34d81-0e8b-4b1f-c9ee-08d82427408f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2020 16:43:47.7475 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 23jtrdC54hVkNyqSr5Yqg7K3xSUSWcQsmg/7wQCWCZYVzTdasbzxupKgv3AoVFJEGTvALaeOXRooC0zk8V4eqw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR19MB2790 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-07-09_08:2020-07-09, 2020-07-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 priorityscore=1501 adultscore=0 clxscore=1011 mlxscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007090120 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-00395d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/09 12:43:55 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=Xwwli9tC; dkim=fail (rsa verify failed) header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=bh6hVaYq; 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.99 X-TUID: wMg/P2NKCMR6 > On Jul 9, 2020, at 12:09 AM, Michael Welle wrote: >=20 > Hi Douglas, >=20 > Douglas Perrin writes: >=20 >> 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: >>=20 >> 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: >=20 > 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-ba= b >=20 > #+name: boing > #+begin_src elisp :var range=3D42 > (message "Hello, crude world: %s" range) > #+end_src >=20 > This comes from the file where I want to use the code block: >=20 > |------------------------------------+--------| > | <2020-02-19 Wed>--<2020-02-21 Fri> | #ERROR | > #+TBLFM: $2=3D'(org-sbe "boing" (range 23)) >=20 > 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? >=20 Not stupidity. AFAICS there is no call in org-sbe to org-babel-lob-get-info= , so the params are not updated. I supposed this counts as a bug. As a workaround #+TBLFM: $2=3D'(org-babel-ref-resolve "boing(range=3D23)") should do. HTH, Chuck