From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4AdQExhmdmD0LQEAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 05:48:40 +0200 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 SI4/DRhmdmAhIAAA1q6Kng (envelope-from ) for ; Wed, 14 Apr 2021 03:48:40 +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 447BE1E7A4 for ; Wed, 14 Apr 2021 05:48:39 +0200 (CEST) Received: from localhost ([::1]:36672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWWW5-0008Rc-46 for larch@yhetil.org; Tue, 13 Apr 2021 23:48:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWWVg-0008RT-7y for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 23:48:12 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:36721) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWWVd-0000oO-Os for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 23:48:11 -0400 Received: by mail-wr1-x430.google.com with SMTP id m9so5688131wrx.3 for ; Tue, 13 Apr 2021 20:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tzrl-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=GjbH+hu5c/K/ypfdjbVMPA5eyw3nMyYjvurjD3Mygm0=; b=JiotWSQaA7WfS3E6hxs0tbZnSXJ6NtPa2ltcOqvr2WAjYtjHjxvhR4XJSRM2ffmhn5 WUSNYOmvzxIskxi6szCbE0xIxp7epEjgeejaaNOcLhVMjrP8h5QfzwBxCtpYm3Lh3nra /Jh9xX0htV3EhH9nkJG5c80ELzUwJqGplKEY0o1flDGDOEZUfyRAJ5dDHhPX6klP6NAI bEApDWq0ueQ0ZXajy4llU2lIg7EmexmnK25p66pEpTt0jqEh1T+Thb6WI5ZInRSCHWFp EtsQjtBzy0EJfnHdGGSmxP5OA2pg3qGtQrqyD/pJXM/FCqyzBn+tCYUyKBvdD3Ah9eaE xHLw== 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:message-id:in-reply-to :references:subject:mime-version; bh=GjbH+hu5c/K/ypfdjbVMPA5eyw3nMyYjvurjD3Mygm0=; b=fYYzL2aLLfCyJfFBweDK4gi8m+6KQ9yIkYpbmSPnH9XmcpckVrbGbzqHe1fHg1tVgS qoGrb1VFCbLAugn2I7lg59BAfNHkbyikFUi9ZfSs79jflGEt61JEWW18QHPW3qYObFB2 y0r3V7OR21fwmfKACH3UAq2lIvRbVLwORQy2wO8D5qccOPCAlXF9Mgh8HxaDgLLfD+dk WNW9aWDcGNzwAtK2NIP3TOwXEVl9KsOl3bZgfmuY7/OmhiFIc7cuLSLpesgVz1hrvWQ7 yiMZAvX2b0NJe9VNGyo9kIYkHS7GGnp6/pFiMXVnkulzFnvGFeSvn5sU+YHuJi8VVyou L+1w== X-Gm-Message-State: AOAM5313phA0ILSmwdvQ4ZtbYERH1W7fHzd5PZ2mWc0B6sLJwGoLIEqn XqXofGSdmUBOSlp4v4krqfLi3A== X-Google-Smtp-Source: ABdhPJx9QHs8gH/xnOHSrXlakHT0CuFjGOTNXZIu+m5AM4usAkbImpqKykoDDckPiLhAqjA/cTersQ== X-Received: by 2002:adf:cc87:: with SMTP id p7mr6730547wrj.388.1618372086266; Tue, 13 Apr 2021 20:48:06 -0700 (PDT) Received: from [2a00:23c6:b508:5d01:20f3:fda5:ff7f::] ([2a00:23c6:b508:5d01:d887:c807:327a:79c5]) by smtp.gmail.com with ESMTPSA id o125sm4054842wmo.24.2021.04.13.20.48.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Apr 2021 20:48:06 -0700 (PDT) Date: Wed, 14 Apr 2021 04:48:05 +0100 From: Rama To: Greg Minshall Message-ID: In-Reply-To: <118250.1618370593@apollo2.minshall.org> References: <118250.1618370593@apollo2.minshall.org> Subject: Re: Is it possible to #+include: src blocks and tangle them too? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="607665f5_bf8d17e_7e90" Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=rama@tzrl.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_PORT=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@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618372119; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GjbH+hu5c/K/ypfdjbVMPA5eyw3nMyYjvurjD3Mygm0=; b=deN2nKgbV9apR16FzQhbXfBqUm2TR3e5GVVE/Uo6JIo+uhCaRkb4iOC/IhHXfRMhzkhxAJ WzD1HPLNuUjagOAhgE4ofJZ5vfnDwi6F499evYxQB8MyULQYGDbsxcTHNcPbjou1n8GaMr ej+eYuT+sknOSv68TURAP+5Jo9nOYteJe7gcpEKqvnsFQ9ch+Ey964KBwRqOkZjofAeorE IJ58QD3tKATkpKO//c/TxF54WTljNY1yom/iza7GSdW/o4Fbrmm5V6zlUnGBG4EyIG8G/w LtPUkXRAhlhqxAp8aCFYumSOF4+VTJNsRaxkeiH2UiMgSqwXG/tVylg15aSC2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618372119; a=rsa-sha256; cv=none; b=gWmTdQjITNKoyKGKJXYoYPG+UUZno35BZH6sO30jptP2Ew50Ep3Fh/exvb9/ve55Sc9bX3 DRenWwX4N7nHHIfkiDCSdNCpm9xFbfbLocj+38UVEsihfEI+IwARqjZn/IsL4IQqghygxp bBHqoKs3TMUyvmkFG0jclmyWz9GYy32hlySnaA6eRj2Siae0YAmuIf9rUUD92WzD+kdcri 6sJn9a1fRLewKTh5m6Hh3T5smZFCyaaMNBNON53AE2TtP32BJY/oheEIP4GM9QsxTlhAB1 4epBiaqPxAVZtWQHmG2DIoewlkiaKLwWwcygEMJKJgfVmdcBCmthOv+DvCzxaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tzrl-org.20150623.gappssmtp.com header.s=20150623 header.b=JiotWSQa; 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-Migadu-Spam-Score: -1.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tzrl-org.20150623.gappssmtp.com header.s=20150623 header.b=JiotWSQa; 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-Migadu-Queue-Id: 447BE1E7A4 X-Spam-Score: -1.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: DLKl1SXgxaU9 --607665f5_bf8d17e_7e90 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you, Greg, this is certainly a logical suggestion, but I didn=E2=80= =99t explain why I would have these blocks in individual files - I will e= xplain very quickly here. Basically I am developing my Lisp code using the ASD=46 package manager a= nd so I have a few different files in a source tree. I haven=E2=80=99t be= en able to fully work with Donald Knuth=E2=80=99s suggestion of writing a= Literate Program directly in a tool like orgmode/noweb since it is a nui= sance to keep having to type C-c ' to go into the editing mode of the lan= guage concerned. I also tend to use a mindmapping tool (MindNode on my Mac in my case) sin= ce with some specific genetic mental issues I do better with a visual out= line than the standard ones even the flexible offering in orgmode itself.= I=E2=80=99m fine once I=E2=80=99ve done the brainstorming, and I then wi= ll export to OPML and use Pandoc to get an orgmode file. But what I wanted to do was to insert Javadoc style comments into my Lisp= in my original code and I would label each entry with the name of the so= urce code block which also gets named .org in a flat folder. =46or example ;;;=E2=80=94=E2=80=94 ;;; metrics=5Fgraph ;;; =E2=80=94=E2=80=94 ;;; Textual essay paragraphs ;;; =E2=80=94=E2=80=94 (defun nothing () nil) ;;;=E2=80=94=E2=80=94 The above is in metrics=5Fgraph.org (http://metrics=5Fgraph.org) All these generated files are styled as a very simple markdown file so th= at I can read this into MindNode and have a bunch of nodes named with the= names of the org snippets as I have called them (confusingly as =22snipp= et=22 has a different connotation most often). With these mechanics I can write my Lisp code as I have done for years bu= t I can also have it easily translated into a set of Nodes in MindNode th= at I can move around graphically with a mouse and create my Literate Prog= ram. Ultimately I have just decided that I will develop my code as normal and = then finally just copy and paste it into orgmode especially since now we = can select a region and and create a source block around it. So taking a Lisp file and formatting it for orgmode is not a huge burden = - then I will be able to tangle it and I will just then continue to work = from the org file if I need to edit and debug the code later on. It just = means I will take the code to near completion before trying to work with = a Literate Program but I do hope to start using Babel for documenting my = work even though I am no longer working in a research setting per se. Thanks to all for your suggestions - Doom seems a reasonable option - but= I will try them all as best I can - I am on my second all nighter though= so need some sleep first=21 Cheers. Rama -- Sent from Canary (https://canarymail.io) > On Wednesday, Apr 14, 2021 at 4:23 am, Greg Minshall wrote: > Rama, > > another possible solution, though it may not be possible for your setup= , > is to =22invert=22 things: centralize all your snippets in snippet.org,= with > each *snippet* set to tangle to its individual lisp file. > > cheers, Greg --607665f5_bf8d17e_7e90 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <= meta name=3D=22viewport=22 content=3D=22width=3Ddevice-width, initial-sca= le=3D1.0, user-scalable=3Dno=22>
Thank you, Greg, this is certainly a logical suggestion, b= ut I didn=E2=80=99t explain why I would have these blocks in individual f= iles - I will explain very quickly here.

Basical= ly I am developing my Lisp code using the ASD=46 package manager and so I= have a few different files in a source tree. =C2=A0I haven=E2=80=99t bee= n able to fully work with Donald Knuth=E2=80=99s suggestion of writing a = Literate Program directly in a tool like orgmode/noweb since it is a nuis= ance to keep having to type C-c ' to go into the editing mode of the lang= uage concerned.

I also tend to use a mindmapping= tool (MindNode on my Mac in my case) since with some specific genetic me= ntal issues I do better with a visual outline than the standard ones even= the flexible offering in orgmode itself. =C2=A0I=E2=80=99m fine once I=E2= =80=99ve done the brainstorming, and I then will export to OPML and use P= andoc to get an orgmode file.

But what I wanted = to do was to insert Javadoc style comments into my Lisp in my original co= de and I would label each entry with the name of the source code block wh= ich also gets named <name>.org in a flat folder. =C2=A0
<= br>
=46or example=C2=A0

;;;=E2=80=94=E2= =80=94
;;; metrics=5Fgraph
;;; =E2=80=94=E2=80=94=C2=A0=
;;; Textual essay paragraphs
;;; =E2=80=94=E2=80=94<= /div>
(defun nothing () nil)
;;;=E2=80=94=E2=80=94=C2=A0

The above is in metrics=5Fgraph.org


= All these generated files are styled as a very simple markdown file so th= at I can read this into MindNode and have a bunch of nodes named with the= names of the org snippets as I have called them (confusingly as =22snipp= et=22 has a different connotation most often).

W= ith these mechanics I can write my Lisp code as I have done for years but= I can also have it easily translated into a set of Nodes in MindNode tha= t I can move around graphically with a mouse and create my Literate Progr= am.

Ultimately I have just decided that I will d= evelop my code as normal and then finally just copy and paste it into org= mode especially since now we can select a region and and create a source = block around it.

So taking a Lisp file and forma= tting it for orgmode is not a huge burden - then I will be able to tangle= it and I will just then continue to work from the org file if I need to = edit and debug the code later on. =C2=A0It just means I will take the cod= e to near completion before trying to work with a Literate Program but I = do hope to start using Babel for documenting my work even though I am no = longer working in a research setting per se.

Tha= nks to all for your suggestions - Doom seems a reasonable option - but I = will try them all as best I can - I am on my second all nighter though so= need some sleep first=21

Cheers.

=
Rama

<= div>
--
Sent from Canary

On Wednesday, Apr 14, 2021 at 4:23 am, Greg Minshall &= lt;minshall=40umich.edu&g= t; wrote:
Rama,

another possible solution, though= it may not be possible for your setup,
is to =22invert=22 things: ce= ntralize all your snippets in snippet.org, with
each *snippet* set to= tangle to its individual lisp file.

cheers, Greg
--607665f5_bf8d17e_7e90--