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 WCwjEtMsK19ueAAA0tVLHw (envelope-from ) for ; Wed, 05 Aug 2020 22:04:03 +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 QIAEDtMsK18rCAAAB5/wlQ (envelope-from ) for ; Wed, 05 Aug 2020 22:04:03 +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 85B56940719 for ; Wed, 5 Aug 2020 22:04:02 +0000 (UTC) Received: from localhost ([::1]:55576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k3RVx-00087z-Go for larch@yhetil.org; Wed, 05 Aug 2020 18:04:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k3RVZ-00087r-1S for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 18:03:37 -0400 Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]:37443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k3RVW-0006Db-5u for emacs-orgmode@gnu.org; Wed, 05 Aug 2020 18:03:36 -0400 Received: by mail-yb1-xb2e.google.com with SMTP id e14so10743888ybf.4 for ; Wed, 05 Aug 2020 15:03:31 -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=RuzaxxtRIfw5/aMcxBFG/0XBUUIM0HdtuUE0uOpDam0=; b=BdtTsMQc7cWIQkU7oY43iqZoPziGLgSn/z0UVhAz09v2+Mz+3ut0yGs3l3pVGm3nYg i/wtQ+Hvn5ly+VYl8BA9KrOgyX8++CGy0b4f5SSkvMNbOpoDmjFQV6zfCtyJNPJCMhW5 yzoaLT6jjQywa9tFXjPOWZfcb5/GI/5P9iPmdu6TzEVci4SjTjX0L3jUvr52yMmRstQZ SdfHNywygWlnBA+Obh1HO+CfJMWUEALA7QUqqsrqyeqfA5mDaP6m3BBrvuAlHEZMZB63 SkbPc0EmHpEJBKrlM2SAeEIqPXdgBEomKCQvVQR3PTc4kL9zfcWMnlgeCT6xT7IeZjfk SEfA== 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=RuzaxxtRIfw5/aMcxBFG/0XBUUIM0HdtuUE0uOpDam0=; b=cPM2j66MeLdOG58V+HC/LRjnjvCMMiV8JILUvlk5xmWpopZ+PPdk5jKBLhruyuYxDF j4+rb99NfwF0g31FLNG5Y5fFrxSBYRLYTEofDWnDn+iI5kshCC0WDDoIxJZVZn6eRtmD l5kHdxbpaVmzMQt9aDJmwjMw4BQwzRyFo9v1/3g7w3fYShw46gQOD+MHWfPmGcuGuvUG uvBbDR67sRl+fEzMU1KxxITBAGIfl5C6Q++FUl3p4/3BpXT/oHn+/+C4SP/x0nWm3fJg s7xtXp0yy4FiHIyKXAVu5qWHL1VR0bu9DRAkaqKbBewOzLHin/bJFxkOX56ZS3l+jDof Q5/g== X-Gm-Message-State: AOAM533OnO9zQPOygd9sdhVeLWapyaypkCTqZb3+pDLNz+U+ih9FPLWd bysM4l3mbgNtz/s4fiSe+hDw729t0X4lO66tA3Y= X-Google-Smtp-Source: ABdhPJwtcB5b1wIHY/nzljYeX6tHbM/vWA1Ax4N1wd0EIML10vxsRfNq/un3jahtbCwprhpYc/3mfQmhmfsQsA4Zprc= X-Received: by 2002:a25:ae59:: with SMTP id g25mr8029128ybe.135.1596665011017; Wed, 05 Aug 2020 15:03:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ken Mankoff Date: Wed, 5 Aug 2020 15:03:18 -0700 Message-ID: Subject: Re: Can you automatically noweb include? To: gmauer@gmail.com Content-Type: multipart/alternative; boundary="000000000000ce9f3b05ac288ae9" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=mankoff@gmail.com; helo=mail-yb1-xb2e.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, HTML_MESSAGE=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=BdtTsMQc; 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.71 X-TUID: tgGDQSt3qd8j --000000000000ce9f3b05ac288ae9 Content-Type: text/plain; charset="UTF-8" What about using :pre or :prologue and setting it at the header or document level? Please excuse brevity. Sent from tiny pocket computer with non-haptic-feedback keyboard. On Wed, Aug 5, 2020, 14:22 George Mauer wrote: > Use case: > > I'm using ob-racket but this > would apply just as well to a few other workflows I have with python or js. > > I would like to write a helper function in a src block and then > automatically have access to it in other src blocks further down the > document. I don't really want a stateful session (nor does ob-racket > support sessions) so I essentially want the equivalent of automatically > including it everywhere so I don't have to type it out all the time (and > have it screw up syntax coloring/indentation). > > Is this currently possible? Does anyone have any ideas for how to extend > things so it is? > --000000000000ce9f3b05ac288ae9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
What about using :pre or :prologue and setting it at the = header or document level?

Pl= ease excuse brevity. Sent from tiny pocket computer with non-haptic-feedbac= k keyboard.

On Wed, Aug 5, 2020, 14:22 George Mauer <gmauer@gmail.com> wrote:
Use case:

I'm u= sing ob-racket=C2=A0but this would apply just as well t= o a few other workflows I have with python or js.

= I would like to write a helper function in a src block and then automatical= ly have access to it in other src blocks further down the document. I don&#= 39;t really want a stateful session (nor does ob-racket support sessions) s= o I essentially want the equivalent of automatically including it everywher= e so I don't have to type it out all the time (and have it screw up syn= tax coloring/indentation).

Is this currently possi= ble? Does anyone have any ideas for how to extend things so it is?
--000000000000ce9f3b05ac288ae9--