From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: transcluding some org-elements in multiple places Date: Thu, 5 Jan 2017 08:26:30 -0500 Message-ID: References: <3d4bfe3d30ae4c5a8be905fa6b15f350@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87shpx5aov.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114525686f1484054558d9cc Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cP83u-0002SO-Jl for emacs-orgmode@gnu.org; Thu, 05 Jan 2017 08:26:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cP83t-0001ME-Bn for emacs-orgmode@gnu.org; Thu, 05 Jan 2017 08:26:34 -0500 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]:36685) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cP83t-0001M1-7A for emacs-orgmode@gnu.org; Thu, 05 Jan 2017 08:26:33 -0500 Received: by mail-it0-x236.google.com with SMTP id 192so2138184itl.1 for ; Thu, 05 Jan 2017 05:26:31 -0800 (PST) In-Reply-To: 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: John Kitchin Cc: David Talmage , Org Mode Mailing List --001a114525686f1484054558d9cc Content-Type: text/plain; charset=UTF-8 On Wed, Dec 14, 2016 at 11:55 AM, John Kitchin wrote: > > David Talmage writes: > > > 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. ;-) > > It turns out to be pretty easy to see the text; that can be done with a > simple overlay. What is not easy, is to be able to edit the text, or use > the text with org-machinery, e.g. org-map-entries. The text in the > overlay is not visible to the org-machinery, so you can not get > properties, edit it, etc... Editing could be made possible with a > special buffer, but it doesn't seem likely that you can make the overlay > display work with many org-functions. > Have you had an opportunity to work o nthis at all? For my purposes, even having the transcluded text visible in a buffer + included in an export would be a major improvement over, say, a link. attempting to edit would, I guess, pop up a special narrowed buffer that edits the original text. Those 3 features together would cover maybe 90% of what I personally need, so if you have the code for this, I would really love to see it. Thank you! Matt --001a114525686f1484054558d9cc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Dec 14, 2016 at 11:55 AM, John Kitchin <jkitchin@andrew.= cmu.edu> wrote:

David Talmage writes:

> On Fri, Dec 9, 2016 at 11:28 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
>
>> On Friday,=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/= issues:
>>
>>
> 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 Transclusion would be better because I could see= the text
> without following a link.=C2=A0 It suits my lazy nature. ;-)

It turns out to be pretty easy to see the text; that can be done wit= h a
simple overlay. What is not easy, is to be able to edit the text, or use the text with org-machinery, e.g. org-map-entries. The text in the
overlay is not visible to the org-machinery, so you can not get
properties, edit it, etc... Editing could be made possible with a
special buffer, but it doesn't seem likely that you can make the overla= y
display work with many org-functions.
Have you had an = opportunity to work o nthis at all?=C2=A0 For my purposes, even having the = transcluded text visible in a buffer + included in an export would be a maj= or improvement over, say, a link.=C2=A0 attempting to edit would, I guess, = pop up a special narrowed buffer that edits the original text.=C2=A0 Those = 3 features together would cover maybe 90% of what I personally need, so if = you have the code for this, I would really love to see it. Thank you!
Matt
=C2=A0
--001a114525686f1484054558d9cc--