From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Talmage Subject: Re: transcluding some org-elements in multiple places Date: Wed, 14 Dec 2016 10:55:40 -0500 Message-ID: References: <3d4bfe3d30ae4c5a8be905fa6b15f350@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87shpx5aov.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114440246acef00543a05ee2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42326) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cHBvY-0005ew-BR for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 10:57:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cHBvV-0004bs-9T for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 10:57:08 -0500 Received: from mail-it0-f51.google.com ([209.85.214.51]:38745) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cHBvV-0004RE-0a for emacs-orgmode@gnu.org; Wed, 14 Dec 2016 10:57:05 -0500 Received: by mail-it0-f51.google.com with SMTP id j191so3617522ita.1 for ; Wed, 14 Dec 2016 07:56:42 -0800 (PST) In-Reply-To: <87shpx5aov.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eric S Fraga , John Kitchin , Org Mode Mailing List --001a114440246acef00543a05ee2 Content-Type: text/plain; charset=UTF-8 On Fri, Dec 9, 2016 at 11:28 AM, Eric S Fraga wrote: > On Friday, 9 Dec 2016 at 15:29, John Kitchin wrote: > > Hi all, > > > > I have an idea for how I could transclude "copies" or links to > > [...] > > > Any thoughts? Do you see any potential issues? > > Potentially very interesting and useful idea. Some thoughts/issues: > > I'm interested in this, too. In my lab notebook org file, I have a section that should be put into its own file and either linked or transcluded in several places. Transclusion would be better because I could see the text without following a link. It suits my lazy nature. ;-) > ... > > - what about more than level of indirection: link to a trancluded > headline which transcludes to another etc. What is shown? Is there a > performance hit? > > It seems to me that transclusion should be transitive. A transcluded org file should be able to transclude other org files. It should be transclusion all the way down. It also seems to me that org-mode transclusion must detect cycles so that it does not infinitely transclude documents. - what happens if the destination moves or gets deleted? the link to > it, which looked like something "complete" is now meaningless. This > could be quite confusing. This is probably the most serious issue. > How does org-mode handle broken links now? That's probably the right way to handle broken transclusion. > - the table aspect is almost a "view" on a database which is really > appealing but would benefit from a fully defined syntax a la sql? > Would table formulas work as expected from the view of the contents? > > Why wouldn't table formulas work? Transclusion is/could be/should be just another way to put org-mode formatted text into an org-mode buffer. ... > > - could we have "read-only" views? I may not want the original touched. > Perhaps that would be property of the transcluded document. > - how does an export work? On the view or the actual contents? > > Export works on the view. --001a114440246acef00543a05ee2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Fri, Dec 9, 2016 at 11:28 AM, Eric S Fraga <e.fraga@ucl.ac.uk&g= t; wrote:
On Frid= ay,=C2=A0 9 Dec 2016 at 15:29, John Kitchin wrote:
> Hi all,
>
> I have an idea for how I could transclude "copies" or links = to

[...]

> Any thoughts? Do you see any potential issues?

Potentially very interesting and useful idea.=C2=A0 Some thoughts/is= sues:


I'm interested in this, too.=C2=A0= In my lab notebook org file, I have a section that should be put into its = own file and either linked or transcluded in several places.=C2=A0 Transclu= sion would be better because I could see the text without following a link.= =C2=A0 It suits my lazy nature. ;-)
=C2=A0
...

- what about more than level of indirection: link to a trancluded
=C2=A0 headline which transcludes to another etc.=C2=A0 What is shown?=C2= =A0 Is there a
=C2=A0 performance hit?


It seems to me that transclusion shoul= d be transitive.=C2=A0 A transcluded org file should be able to transclude = other org files.=C2=A0 It should be transclusion all the way down.=C2=A0

It also seems to me that org-mode transclusion must = detect cycles so that it does not infinitely transclude documents.

- what happens if the destination moves or gets deleted?=C2=A0 the link to<= br> =C2=A0 it, which looked like something "complete" is now meaningl= ess.=C2=A0 This
=C2=A0 could be quite confusing.=C2=A0 This is probably the most serious is= sue.

How does org-mode handle broken li= nks now?=C2=A0 That's probably the right way to handle broken transclus= ion.



- the table aspect is almost a "view" on a database which is real= ly
=C2=A0 appealing but would benefit from a fully defined syntax a la sql? =C2=A0 Would table formulas work as expected from the view of the contents?=


Why wouldn't table formulas work?= =C2=A0 Transclusion is/could be/should be just another way to put org-mode = formatted text into an org-mode buffer.

...

- could we have "read-only" views?=C2=A0 I may not want the origi= nal touched.

Perhaps that would be prop= erty of the transcluded document.

=C2=A0
- how does an export work?=C2=A0 On the view or the actual contents?


Export works on the view.
= =C2=A0
--001a114440246acef00543a05ee2--