From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wPkIJDEoLl9vFgAA0tVLHw (envelope-from ) for ; Sat, 08 Aug 2020 04:21:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SPPRHzEoLl/DNAAAbx9fmQ (envelope-from ) for ; Sat, 08 Aug 2020 04:21:05 +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 1D29394028F for ; Sat, 8 Aug 2020 04:21:05 +0000 (UTC) Received: from localhost ([::1]:48044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k4GLw-0007QY-3g for larch@yhetil.org; Sat, 08 Aug 2020 00:21:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k4GLY-0007QQ-NI for emacs-orgmode@gnu.org; Sat, 08 Aug 2020 00:20:40 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:55820) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k4GLX-0005sI-1f for emacs-orgmode@gnu.org; Sat, 08 Aug 2020 00:20:40 -0400 Received: by mail-wm1-x331.google.com with SMTP id 9so3281536wmj.5 for ; Fri, 07 Aug 2020 21:20:38 -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=ELLmMzkLTRhwVB31ZW5ZZsv0HvBsfAmXT0mKnMrVnyQ=; b=OX9jRzAtXMyUzENRFmD9fAVF8Yy0NVvEuqqv8EIvpc7gs/TDrOly4MphL+9qTUkbg+ JJqIAzFa3aaqbv5SE/l2NEA5z+BdgtW+Uvmkv57/jClkjg6ktpyKmDgQqqs45ZBcTxNI l2m6t1YTEINXB9Bp3R94vtjhzDh23NJ00oeFNl3tabFwx2ivxwRc0M/8zVAwsQXVXWZu MngUw25JtRyKnYJBR2uJxbJEdrc0jq44oT+cL9bYO25cDwILzcKQKxBDUkDyFaw7Xw0d Xa5rtyREUVxD9waD5Jz7ouYaABW0ScRgKzDtOPXBJSHBhBYSB2Y5OHVt3LnclG2IVvYC w52g== 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=ELLmMzkLTRhwVB31ZW5ZZsv0HvBsfAmXT0mKnMrVnyQ=; b=K11oMP/qI4NWLPEFVpzhay1ZobN7WgS0GJ3nKMxXhk9898br6aGq6aeY1QLDpRHyqi BuXMYbjuQ19Q6FCVDpydeu0H2ufuHb/rxlezbsnmF5pmUlIusPiTqdQHWbJ/sb5iHzAU kitoCUHuZLyEgPhHcevWNQqw7C8W/ZerYKDXiETUQVRgV74kthCwDLujcr3pLMl6Kmu4 7lxg2t9/gufzMS0Mm3wKyy+DSsvOcGbNqkFmPyXZz7Vfz0BQzbwI4bWjs6dvgf7AVx9+ Lf3r7vmnJEN+m1uv3AgcmtkXfmydk+UJ9GZKuTDNKQAWAwHLIUTJTx2VIpel+XmcygTD L5jg== X-Gm-Message-State: AOAM531ZLLUsas5wkRJP39TN2PkpaPcKLSEqvCBwAdoE8GHleMzlzPte NZdyq9pfiPnyNTGk1HeeSReT9PVpJS6tw3Ur1/w= X-Google-Smtp-Source: ABdhPJyXy/4odojeW+jpXeDuG9puwwzdXKfR0/LmOje15QSj++2UqL3YAMzEz9w18F1DPzAvF496fQfBXZ4NNjhTCmg= X-Received: by 2002:a7b:c00c:: with SMTP id c12mr16515604wmb.54.1596860437295; Fri, 07 Aug 2020 21:20:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tom Gillespie Date: Fri, 7 Aug 2020 21:20:26 -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::331; envelope-from=tgbugs@gmail.com; helo=mail-wm1-x331.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=OX9jRzAt; 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: NYMTurFwLFJt Hah, this is what I get for not reading carefully enough. I wonder if it is possible to stick <> in the prologue and have it expand. On Fri, Aug 7, 2020 at 9:18 PM Tom Gillespie wrote: > > 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