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 mQTpI9S0wV88FQAA0tVLHw (envelope-from ) for ; Sat, 28 Nov 2020 02:24:20 +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 2HE8H9S0wV/FTwAAB5/wlQ (envelope-from ) for ; Sat, 28 Nov 2020 02:24:20 +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 728F39404CC for ; Sat, 28 Nov 2020 02:24:19 +0000 (UTC) Received: from localhost ([::1]:53908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kipuL-0000ZL-KU for larch@yhetil.org; Fri, 27 Nov 2020 21:24:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiptB-0000ZC-Ce for emacs-orgmode@gnu.org; Fri, 27 Nov 2020 21:23:05 -0500 Received: from out0.migadu.com ([94.23.1.103]:51738) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kipt7-0007Oy-63 for emacs-orgmode@gnu.org; Fri, 27 Nov 2020 21:23:05 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1606530212; h=from:from: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; bh=quje6vm3MekFTvZWZIgS5lAPwZVGYtfC4x8/pBVot0g=; b=PbdMwV7wcnKOz/kN9ce8k17ldFUC2yfQdjBwsTacdiRnSPlNAoNZ0x7qhxaWsSOG9gI91G C/w9wcVzO1oxzv7UDpG/Vv/0X6kS/syD2jGi+ZfRRJtPDizj+4CR6BOmTtfs70IgYL2nY6 zwmxZf8imofT6gskUi6zP9vvDf6k6fNtE1kfA+EgN/70sgV/S8YA1JyiYKTRwom2F1dZMr XX0HXmWua/aOVBduxPxHYj9dp9C9o7ViBhgnlbdQdomUEp10wPMQXSu4lCsqQZkH3qGOWK k6AZiPSeSCvnQ48HfvCC1Br9RjHI/qWSSKARZMonWFjdqfGE+hhaHSKLDOzAbw== From: Kyle Meyer To: gmauer@gmail.com Subject: Re: How to get a =?utf-8?Q?block=E2=80=99s?= contents by name In-Reply-To: References: Date: Fri, 27 Nov 2020 21:22:54 -0500 Message-ID: <87y2imqkxt.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=94.23.1.103; envelope-from=kyle@kyleam.com; helo=out0.migadu.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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.23 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-Spam-Score: -0.97 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=PbdMwV7w; 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-TUID: wDAr7edRJxms George Mauer writes: > I'm trying to figure out how I could fetch the contents of another block by > name from an elisp script > > I've seen `org-sbe` but I just want to get the block contents, (ideally > with noweb and vars filled in - just as it would be tangled if we were to > tangle it) > > How do I do that? How about something like this? (save-excursion (goto-char (org-babel-find-named-block "b")) (org-babel-expand-src-block))