From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bob Heffernan Newsgroups: gmane.emacs.help Subject: Re: Org mode & "literate programming": including files Date: Wed, 7 Apr 2021 09:28:33 +0100 Message-ID: <20210407082833.xtrxpwyczgghxb7l@bob-nuc> References: <20210406183852.67ucwze6yxugvgrl@bob-nuc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13333"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs mailing list To: Arthur Miller Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 07 10:29:16 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lU3Yq-0003MQ-5o for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 10:29:16 +0200 Original-Received: from localhost ([::1]:46834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lU3Yp-0003eg-6a for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 04:29:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU3YL-0003eK-As for help-gnu-emacs@gnu.org; Wed, 07 Apr 2021 04:28:45 -0400 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:36511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lU3YJ-00042J-8K for help-gnu-emacs@gnu.org; Wed, 07 Apr 2021 04:28:44 -0400 Original-Received: by mail-wr1-x42d.google.com with SMTP id x15so7754537wrq.3 for ; Wed, 07 Apr 2021 01:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XJrEllRRGKSobdCmAQpZND5nFA7O63f54b8rWhTCPP8=; b=FatwUSICnK0F0UQOBkdbxQHGSjKr5+2EmJ6q9uym9nfEsSql+OXNRiXfyilCfS4OIF pJvQ5BkuaIq0lu/bBYJcacgsSOQFqQr3VbFI+wvJmh88p1ReGHbZxA9eTKEvm0GF0Sd4 YNpbz1yr8Gnmrvc5vAOL3sn/NVlG209Ldyib0rubEtCT9dKA+LHsMTzQVzuf0yEjnE9n UjBYQGAwvQA9DasoFbnA5jcH8QQ930QgYzO/8pwT0PwbtOLRk3OlAE3mPkPoG6OhPhG+ /eKbdSRTDEF/HhU7U1FluZcNvayOjUrNiHUUWw//QytzuqMloyQz8lsFYeKyHyt56Oxt lVzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XJrEllRRGKSobdCmAQpZND5nFA7O63f54b8rWhTCPP8=; b=EYgxnq7CWxep80Kbf45d9HOhxTNBVR0k30B29/57RJezf/tOYTlU/yXuQFS8q8KEy1 3/UGnFxTLfL/oPPb1KV5d8+B/7UxmF6Jx7GBtgqiz+u+0lSETt4eqH3Nsjzli4OE2b9p kDL3d6gd8Y9985epIKUiDQRKm7sqDhDu+G8/oDRbo2/xrW+fTX3qPW0jyiYToFxgLrbz hAk/REPY51ZAL40ovNrrSmzeNvRMdlqNEtX2PydIS07MTbtVhEJFovNoxeHa+rQPuUyY 4VwURAPNQUyZbOrMFCxzTZmHh4eKQGBiA0p0k5OfRgCWd/k56ILVfB4BkbzJH93aQ50I UXHw== X-Gm-Message-State: AOAM533Au0dJ11jBvobFdAyXm9dCr7WQ3yq/ThdCJs0CjlJC6Btbe5Wv DY9AlvFy+3DM5206sxZNmu4= X-Google-Smtp-Source: ABdhPJx3OfOvS/fBBZpmNbeWgIBz82uAEDbXIBc6stFqSPB3026pyTGmpVngt548b0/01TEdro/k4Q== X-Received: by 2002:a05:6000:544:: with SMTP id b4mr2962907wrf.352.1617784121680; Wed, 07 Apr 2021 01:28:41 -0700 (PDT) Original-Received: from localhost ([2a02:8084:9841:6600:d098:f653:b555:7e49]) by smtp.gmail.com with ESMTPSA id d20sm7108365wmd.48.2021.04.07.01.28.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Apr 2021 01:28:41 -0700 (PDT) Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=bob.heffernan@gmail.com; helo=mail-wr1-x42d.google.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, 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128884 Archived-At: On 21-04-07 05:54, Arthur Miller wrote: > I saw your question on reddit, and I saw somebody already posted you an > answer. You are looking for `org-babel-lob-ingest`. > > Check the SX link posted to you on Reddit, it has what you are asking for: > > https://emacs.stackexchange.com/questions/31999/config-examples-and-use-cases-of-library-of-babel Arthur, >From what I understand, the library of babel is a feature to glob regularly used (named) code blocks into a single file, for use in other org files. While this looks as if it could be used to achieve what I want (first, ingest some code into the library, then use it elsewhere) I was hoping for something similar to the sort of thing that is present in most programming language REPLs: load whatever source file you want, then use the procedures therein. > Hope it works for you and don't forgett to say thanks to the guy on Reddit. I'll take a closer look at it and thanks for your help. (& you're right, I need to go back to reddit and respond!) Regards, Bob