From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KAQwJvA76GF77wAAgWs5BA (envelope-from ) for ; Wed, 19 Jan 2022 17:27:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WFT4HvA76GEQ8wAAG6o9tA (envelope-from ) for ; Wed, 19 Jan 2022 17:27:28 +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 1D8453C6B5 for ; Wed, 19 Jan 2022 17:27:28 +0100 (CET) Received: from localhost ([::1]:34026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nADny-0006EK-UX for larch@yhetil.org; Wed, 19 Jan 2022 11:27:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nADJx-0007XV-Jd for emacs-orgmode@gnu.org; Wed, 19 Jan 2022 10:56:25 -0500 Received: from [2a00:1450:4864:20::129] (port=35598 helo=mail-lf1-x129.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nADJv-0002f1-TJ for emacs-orgmode@gnu.org; Wed, 19 Jan 2022 10:56:25 -0500 Received: by mail-lf1-x129.google.com with SMTP id x11so11240413lfa.2 for ; Wed, 19 Jan 2022 07:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:reply-to:from:date:message-id:subject:to; bh=Ln5FP6G5SzlozzGbZLobZtKSHYSRp9waBGXTXWWMsXw=; b=kOkbvRxh1K0uDk7sLOtxp+ZS7pT4mSBsaGyM53XPcA8J1aby7Ir9bijjEqsAIank8h hHcRKtwVsORanowraSwEsNtCwCZNd6lFFF2aVY5fkBz1Nc6q3+seu6TrD5gk0q8pupMP M2xrV/ghE9n6BZr4tSzCFyHyGFlyhkfYHMdBmmMqRw3YnreM0hr8SwBpHj5UwFN4kT4k rseanTA1Z9YhxguWRMzm9G27Vhjk/MWFvVSmZtefu9sf/UPOhF9EHP1o3ieotlEG6hle pibi8HEh6mtlCnRundPzNIdUrCtcpTajX/FqGQIeaxdMVadZRYyWz8uMwBOBacrte3np n1vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=Ln5FP6G5SzlozzGbZLobZtKSHYSRp9waBGXTXWWMsXw=; b=TNWHU8rL6CYSzSNFFX+hS2j/I7dbobW+/A4dMnqvFBJatSlEacbSXoNkRPcR3NpvFa 0GrYP+S5OwTbi13TI/iEdR2+TecjZQc5ZkNw4zoHyDXG669x9GWp7/CiYDdCjJs9cFCg Q5nCgtFLFq7XuTGdreU4/EBLe52QCCppQ8f+P2avU2euiTphgA+ty4Yvv3PWEHYaHI/N SHxjaLJLe7hPHTp5yXUd5W6/+AuyciKtyBmJ9X/SQshr9KkKmDCGDA9STl+G6yJvahTw /y5j49fyOjuO1adaITnmu7oU4vlfbWk1gca0PvQWOfNS9jimPEWvE9NSwYtWHSUhBLkr KFSQ== X-Gm-Message-State: AOAM531U9r1BDp6cfNYxdNK8Dw3PLViSpV3uVCFKmgosERnuuvUth0J5 OvjqaqIJOydO5jngDx6F5FrAPqP9ZTpN5kukxDW2jxH8ogU= X-Google-Smtp-Source: ABdhPJyTx4TxM0i9qg84toEP4dxDapOKM07GQ+XyXATa/igM/IlTjTRyc/e6GTu8TKWwqQpS9gkizl8F0oC/QmkskXM= X-Received: by 2002:a05:6512:3682:: with SMTP id d2mr26971807lfs.678.1642607780826; Wed, 19 Jan 2022 07:56:20 -0800 (PST) MIME-Version: 1.0 From: George Mauer Date: Wed, 19 Jan 2022 09:56:09 -0600 Message-ID: Subject: call blocks as a function from inside elisp code To: emacs-orgmode Content-Type: multipart/alternative; boundary="0000000000004897ed05d5f16d96" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::129 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::129; envelope-from=gmauer@gmail.com; helo=mail-lf1-x129.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Reply-To: gmauer@gmail.com 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642609648; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Ln5FP6G5SzlozzGbZLobZtKSHYSRp9waBGXTXWWMsXw=; b=Ib86h4uwGoTJ0b6gLxyvzOeLfWk0F+IsDqZlRrQB8M5JWyxr/AxFGFy6aX6jEQ60uT5H3r mxiG6Bc62gwhPQAmBuYCYWVTFuHS4Jv2dvVm/Eq38beRyYqGxCcTowNnKsOQtF4njWIswT B80tC7zYvwPneZXVTuJ5evsZ2yKi4WwhNaJoVYKCC1/gdGuHsVwthFgobLpj1HFuKBEUBU eD5w898qDH1EFzAFOax1a5J8B+FIUSXLAYJZBAa71h5kKxoU3k910exXqqCdbS54uZAhzF tCrQQ3+9JS3fHx/t4bhVZn6F91mUk1ElgY/5eRxZDX2JSkVma5jfLq/3TVENOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642609648; a=rsa-sha256; cv=none; b=Giprx26l4jNl9nkEC2Vhyoqwz9fvpCAlV2pP1ZvPwM1l4Mm57szyR2Qm91lYpGTm3OWKCU xd1U9JuoaJ7DRqYzOGwHBBxLMDgUvfoWZ/H/bn9nb4Wv928zwNVMma5IWMIpnBT1x0ZLWr +FqndB2jDfuaF10+9nA7EcotvfmsuTb2H5fJn47d++YoFQZdtPpWwvQh8HbSfRtFsrxRZE HLjCMzInmnmLM0fWngvZWhYUuLsNiEgFqYDy4DW66cnqsg9UWTFk8jm1Iww3tHPNU6+hoL Wx24X7Uw7iD7gD47h1PagFz//R47vwcXo3LGVHuXlKt7K5Z7B6LFFmFNk3mzSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kOkbvRxh; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=kOkbvRxh; dmarc=pass (policy=none) header.from=gmail.com; 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: 1D8453C6B5 X-Spam-Score: -4.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1n5FbtgL9/ki --0000000000004897ed05d5f16d96 Content-Type: text/plain; charset="UTF-8" Hi everyone, I know that I can call a source block as a function in a header argument such as :var, inside noweb annotations, or with a #+call: as described here https://orgmode.org/manual/Evaluating-Code-Blocks.html I am interested in going one step further though. I have one emacs-lisp block that generates a list of python files which mention a search term provided by a variable (eg gim/get-file-list(search="_utilities") ) I have another code block written in python that given a python filename will do some ast parsing to tell me some interesting facts about it (eg #+call: gim/get-python-program-info(filename="foo/bar/some_module.py") ) What I would like to do is to chain the two together (ideally inside a code block so I can dynamically format the output) so that I can get info on *each* of the files produced by the first block. 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 --0000000000004897ed05d5f16d96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everyone,

I know that I can call a source block= as a function in a header argument such as :var, inside noweb annotations,= or with a #+call: as described here=C2=A0https://orgmode.org/manual/Evaluating-Cod= e-Blocks.html

I am interested in going one ste= p further though.

I have one emacs-lisp block that= generates a list of python files which mention a search term provided by a= variable (eg gim/get-file-list(search=3D"_utilities") )

I have another code block written in python that given a p= ython filename will do some ast parsing to tell me some interesting facts a= bout it (eg #+call: gim/get-python-program-info(filename=3D"foo/bar/so= me_module.py") )

What I would like to do is t= o chain the two together (ideally inside a code block so I can dynamically = format the output) so that I can get info on *each* of the files produced b= y the first block.

So is there a way to do the equ= ivalent of #+call: gim/get-python-program-info(filename=3D"foo/bar/som= e_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 s= everal other reasons
--0000000000004897ed05d5f16d96--