From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6KYRCr8nLl8vFAAA0tVLHw (envelope-from ) for ; Sat, 08 Aug 2020 04:19:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id m8PiBb8nLl/pKAAA1q6Kng (envelope-from ) for ; Sat, 08 Aug 2020 04:19:11 +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 A9F989408BC for ; Sat, 8 Aug 2020 04:19:10 +0000 (UTC) Received: from localhost ([::1]:45838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4GK5-0006P0-Kw for larch@yhetil.org; Sat, 08 Aug 2020 00:19:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4GJh-0006Oq-RU for emacs-orgmode@gnu.org; Sat, 08 Aug 2020 00:18:47 -0400 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:35398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4GJg-0005hI-62 for emacs-orgmode@gnu.org; Sat, 08 Aug 2020 00:18:45 -0400 Received: by mail-wr1-x435.google.com with SMTP id f1so3364057wro.2 for ; Fri, 07 Aug 2020 21:18:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=m9Ktn3o2g1e3WvmDpRN77V8IVi7jm3qHvqHNOkcnzQg=; b=ZO+ZGXsWyR4BhabBHOIXo2YmYPwl/oSDPvHjzvBTldKfW/4yLs9S3IbAsHE5MH3AU5 gG/9k9vzfIp9xDYHk6dk4RwbK3bK0ms+Hj1Y1uhe7YtgYNm2XuhOwQiv1F+hChvwiLuH 1EUfHglRzK+Pe05S4XyxWNqNw37KefobU4Hfo7gXxYmhfSYluZXIxFcflcDr4Hma/+or mZtJOJeIj7CT6UKNBr4YcDKlgZkaauCw68rVzvFDswPFMpMj2IddjU744k4gwcAiFMet dbVu05dnLxYHM3GJotsb/+b1Q+Kt/ZzRDKnZ05Dsod8jZ0XuCXltT2KvP/+otpGRdkOq EKiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=m9Ktn3o2g1e3WvmDpRN77V8IVi7jm3qHvqHNOkcnzQg=; b=d9U+Dz+v433VsUWMTfxlYV7rcjGFj16oCsZaB9vJKx5hRMxIj/gKhS3O06vto/3r7S GWQwSjqtGU3GPDELYU2i+GOLxd3PI5divJMTqJf0zml9o9Nz5cZd+em5EvIsBIMPSyyc nr1Bc+m/2FqEmBz/RWn39Rq8y4fAvKKvMG7wejoIC2EGY17F9qTsRbqUFWorDUWFK5uv azwwNCcwEu8saheBqVSQ8ZGm5cM0V8g7LZzMuvWYQwgbszb0OSwF8zAE4OJjuTUNyblG vAT2/e0Qo/TC/mZPpnleD96E4kLkyrpjswrOOiTE3GVFS57/4O958QqYmzq02Zt06q78 Vm0A== X-Gm-Message-State: AOAM533kRTDPQZWyRHoQhnq6bk7o4uhI92n4wnzJRr5KHTisuLdX7LtX EdcTaVeJHNbdqk7ryocwRIQALyBAzGgjw4gKzRk= X-Google-Smtp-Source: ABdhPJzgMu+mAJIC3E7zYp9PtHt29YsJk1nSD55AlHm7nn+jbyFiD7ayt3PPF4go7KZ/7vAM7hysT83y5PJse+HKPec= X-Received: by 2002:a5d:5383:: with SMTP id d3mr14754130wrv.42.1596860321384; Fri, 07 Aug 2020 21:18:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tom Gillespie Date: Fri, 7 Aug 2020 21:18:30 -0700 Message-ID: Subject: Re: Can you automatically noweb include? To: gmauer@gmail.com Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=tgbugs@gmail.com; helo=mail-wr1-x435.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZO+ZGXsW; dmarc=pass (policy=none) header.from=gmail.com; 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: 0.79 X-TUID: 2vEelq4qkjpv I don't see a direct answer to the original question in the thread, so here is an example of how I do it taken from https://raw.githubusercontent.com/SciCrunch/sparc-curation/master/docs/developer-guide.org. You can ctrl-f for racket-graph-helper to see the relevant blocks. A reduced version is below. Recall that I use https://github.com/wallyqs/ob-racket. I use this pattern all over the place in my org blocks. Best, Tom * Use the code :cache yes" #+begin_src racket :lang racket/base :noweb yes <> (helper-function "this should work") #+end_src #+RESULTS: : this should work hello world * Define the helpers #+name: racket-helper #+header: :prologue "#lang racket/base" #+begin_src racket :lang racket/base (define (helper-function arg) (string-append arg " hello world")) #+end_src