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 ms0.migadu.com with LMTPS id iNh2FGFA6GEXUQEAgWs5BA (envelope-from ) for ; Wed, 19 Jan 2022 17:46:25 +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 WDJADWFA6GEJFwEAG6o9tA (envelope-from ) for ; Wed, 19 Jan 2022 17:46:25 +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 CE0173D1AA for ; Wed, 19 Jan 2022 17:46:24 +0100 (CET) Received: from localhost ([::1]:35522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nAE6J-0002Oy-J3 for larch@yhetil.org; Wed, 19 Jan 2022 11:46:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAE4Q-0002NQ-WC for emacs-orgmode@gnu.org; Wed, 19 Jan 2022 11:44:27 -0500 Received: from mail-db8eur05on2139.outbound.protection.outlook.com ([40.107.20.139]:27018 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAE4O-0005Si-4A for emacs-orgmode@gnu.org; Wed, 19 Jan 2022 11:44:26 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NRrChPWUEhO6Me0v3EoVmWM79ln/zgBv/0qoEaQETu8Z2fNOOESnL5ThRVK5MByUdfvzzNRc2KpnHi3NIU0whIrDiWNCWa4/7YIRD0rbn4jTNTPXmflOqh/KUwp4DxE6aT/yH/epD1K1fpy32X5Fd4nwTbaSDOqyFSxeYYgd/QkdoTFGkO849cV6pTQezlrVsNcHEgW5kSXLna53v0aEsU9IMa4GuPv6tm8ouT++SK05UKAKHsmmkwYk7pPxoBp16Z8gp/bQK4f0X7H+6OCcmu6D0Fb5YTVt4KQp1jZj+icWomXzleGSHUn0DQ2N1Vbi0KY4BjcHzJISdpT4eki3tg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=eBipj2sWJjjCo97k2fA4VJjmBRhlOgxeefmEqXt53MA=; b=hVz9mar7sL/d+Xwi9D53T8lk9JA1mhQRPQEkiowE1XJwTqtsglpoK+mM329XjpDrW4KmPXLE3qElyuIYLAwjOmHAlWRt4J8RyXdr3RmQeBjSHvOhPsFjUoDnClqc57bMCZbwS21T2fzpCMCKcrjedOodPOROHN03SLYjcd79ciYj8n4m4T7kSluD9WW6rSKOUcMGmeriaM+Kn1oeZ/rBoQp5kShi9ubEojQt+6F1Gibti6mjNqiiXOM93YsGCdPzTOrNsXxXUtkgBm2neTfaomGZEA0AbjOB2Yv54ZK0wFChEB6N90zzSvsRyjLRG2ZPj/oQNBl5gts9u0t31ZsXFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eBipj2sWJjjCo97k2fA4VJjmBRhlOgxeefmEqXt53MA=; b=Qy16vS/7PYA5vb0gL3RxAGbXSUhZK5DLd4VOGZqtsAHqTGSnNddxmL3FNxLIQIus0dQLUxCMcImiObDIW4bii3ZlRXY+1ze/oMMcrHpzJ9L+j7jL4dwmvyP0YwQ/hs84DCnk4jF1w2AduGfAf4Wl/LcnVSRTOa5ooMmeelsUyeE= Received: from PAXPR01MB8439.eurprd01.prod.exchangelabs.com (2603:10a6:102:220::13) by DB6PR01MB3879.eurprd01.prod.exchangelabs.com (2603:10a6:6:4c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.12; Wed, 19 Jan 2022 16:44:18 +0000 Received: from PAXPR01MB8439.eurprd01.prod.exchangelabs.com ([fe80::7df7:eb08:a92a:7dbb]) by PAXPR01MB8439.eurprd01.prod.exchangelabs.com ([fe80::7df7:eb08:a92a:7dbb%3]) with mapi id 15.20.4888.013; Wed, 19 Jan 2022 16:44:18 +0000 From: Eric S Fraga To: George Mauer Subject: Re: call blocks as a function from inside elisp code Organization: On the Interweb somewhere References: X-Url: http://www.ucl.ac.uk/~ucecesf/ Mail-Followup-To: Org Mode List Date: Wed, 19 Jan 2022 16:43:44 +0000 In-Reply-To: (George Mauer's message of "Wed, 19 Jan 2022 09:56:09 -0600") Message-ID: <87bl07oev3.fsf@ucl.ac.uk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0146.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:188::7) To PAXPR01MB8439.eurprd01.prod.exchangelabs.com (2603:10a6:102:220::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bd0938b3-2253-4644-95e2-08d9db6aefcf X-MS-TrafficTypeDiagnostic: DB6PR01MB3879:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IdlZ8vTbumqg1nDFvQC9JhXm2+9eaMX5syFfe6jpZwKMIfNiRciaUQAZNv/EDEjmlr4ZZgyI10JQdh2cFq219krofAnJKCiHo15LIseUtoc6AafeRYCstZWJgHi3DpxJrI09sSUzPmjEPQehMhakEhA0lalCPzSveTB5183/y6y1VzTg9SFGkX/GxnIgF71cH0rLQqo8dsuDL0FuIgMtp4/70LiYotsTydjNzJxbfA7hWDxecY9oLynNbbF1zG/GaU/htTBu2fwm6Sl+AuVh2lefc/bLAsyiXLRixqChzYi8j/iRZryenwVooN2gjQkoK3H5v8lJzmt1Eant62toe1ccc2dHKfoJwtA8QIP1+42iFMBnCpkjtnns+gGPwvpCNxjn/5IumbujdvEPFu3WlSKPA66KCsB9MGEIJAYOup8eod2S9pXXwpmZYmUXYhNysrBGXrlXZ0m80rNXWTacDv2Gut2wqfBPfVeD6b8tWZR+7HdOXq2ZDpnldbsCl93zYbMGpIZXo1h8ZxVWwijCEtGHzdyV5UwL2h3KCdsUVxa7ZsAQpqqYn6LCMskh48lM1E+03W0H6EhVPOJx17h2RP/HdZkyvl3mKycwTDzGfIrEnMoyZ0S0kFRj1PSyChu/TJLIfTM5TnNhwYblMfCbc6z8uz/0vJ4cxVS6asUUptF7brdaYT7MrrVrGMOHD24dl4THeC9rXgIB8gPISW519Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR01MB8439.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6666004)(6512007)(2906002)(38350700002)(66476007)(66946007)(786003)(316002)(6506007)(66556008)(26005)(186003)(36756003)(6916009)(508600001)(83380400001)(8936002)(4744005)(38100700002)(5660300002)(36916002)(4326008)(52116002)(86362001)(8676002)(6486002)(2616005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-Mess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95e2-08d9db6aefcf X-MS-Exchange-CrossTenant-AuthSource: PAXPR01MB8439.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2022 16:44:18.7260 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LY+ditfTreCjmBg2X5uwnJVnOrH8cijZ+2OBeCJDqh0GJ9KFYtH2Onqqrazeha7DHhev2YgTbE9XOYPcPYNtrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR01MB3879 Received-SPF: pass client-ip=40.107.20.139; envelope-from=e.fraga@ucl.ac.uk; helo=EUR05-DB8-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642610784; 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=eBipj2sWJjjCo97k2fA4VJjmBRhlOgxeefmEqXt53MA=; b=LEpYfsbb5Bja+p41s++XjhL44B3yUCUVUH3a/wR3ZAlYGbn2zv4kyqw3UXkEFXRu6Uy24U 7wt/RG8aC6bLkhHhqgkVICfg5pbUDO1n/p9vCnBvWt/yVBanO/B6ouBGq8EO/5a88GNbDL aSPVLkISzZtdHxkmFRWB2bfQ72bEh8r58dFba5zd/wP93YtQRCg79MfJ+RVHqhvbLjaH3E YnhRmM9zWZyeQmOAgLtl7cC0ypg3YsG0cb8kMWgWyRaCYJq8zK/IkvMcZtt9/85DHM1veQ tglC+Sw1qfCUWYZYb38aaUGG2ZjPxbS5ctCVW1NE9AZMSRZycXXb4JOr5ljR6Q== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1642610784; a=rsa-sha256; cv=pass; b=g8WFmyfQLr291zZ3BpadU0h8ESJjb8okHcTLQhqM5HIZYdMaxlT/KqLlKGfhLwkc9GrINp Z2TSaSmDwTg8ywZzKJmyXuxPnw4OH/FQgZew+klKf8FeyTHBcqljUwLrpn41CgkKseohk3 7LqJO790ACNENPQO//j6wj4/VzG+QNhaMfjheLinomh2JExrNM0S8hoKybCIdDYjAj/I7i yH+Sj09L5sHSTN06jrOjTDXeN21dM9Zfdd+dRpXqYhI4zWPo1gFOxlxS9JnJQylnDU1YZX 3PdzCCYbgqB5GgkypcG2uioepOk4D6aHy9FFmfwGnwG1bMTu/YK7VXYi/hrYlg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b="Qy16vS/7"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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-Spam-Score: -6.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b="Qy16vS/7"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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-Queue-Id: CE0173D1AA X-Spam-Score: -6.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: 2djqM2OJw7cF On Wednesday, 19 Jan 2022 at 09:56, George Mauer wrote: > So is there a way to do the equivalent of #+call: > gim/get-python-program-info(filename="foo/bar/some_module.py") from > *inside* an elisp code block? I am aware that I can call things via > noweb, but I'm trying to see if I can avoid that for several other > reasons Two ways I can think of: 1. use the :post header argument to chain calls or 2. invoke (org-sbe "blockname") although I am not sure if you can pass variables. org-sbe is a macro in ob-table.el. There may be (very likely) a more general way to evaluate a src block from with elisp. HTH, eric -- : Eric S Fraga, with org release_9.5.2-306-g9623da in Emacs 29.0.50