From: Samuel Wales <samologist@gmail.com>
To: David Rogers <davidandrewrogers@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Can I "multi-include" a subtree?
Date: Sat, 2 May 2020 14:00:56 -0700 [thread overview]
Message-ID: <CAJcAo8vk2CUVUjHsEYHseoQWPKfxt4RZckCmdBEEzHWSQ2tJiA@mail.gmail.com> (raw)
In-Reply-To: <CAJcAo8ttssR+-wZ3vY69OEZGUrr8US66n+Q4HeyySvREAV1Cog@mail.gmail.com>
p.s. presumably the agenda would in some cases want to distinguish
canonical [in the place whwere ther data will be saved] from
non-canonical.
also presumably a few traversing commands would want to recognize such
regions in order tonot follow non-canonical, or to look for infinite
looping, etc.
presumably org-id is the best solution for keeping track of which
files have or need virtual regions. basically an underneath layer of
org-id [but maybe not limited to entries] that the user does not
interact with.
On 5/2/20, Samuel Wales <samologist@gmail.com> wrote:
> stating the obvious: org typically stores a forest [files] of trees of
> nodes. some things you want to put into it are best expressed more
> generally than with trees. i call it [boring name] the tree problem.
>
> there are a bunch of existing sort-of solutions, but to me the best is
> linking [as you mentioned], using org-id. although that only links to
> entries, and it requires following links. one entry becomes
> canonical. you have to set metadata for the linking node.
>
> there are solutions not implemented that could be better that have
> been talked about on the mailng list, but they still have the issues
> of following links or other issues.
>
> duplication is out the window because dry.
>
> what you seem to want seems to require a feature in emacs in which you
> have virtual includable regions. this can be done to a large degree
> at the buffer level, but not at the region level.
>
> that would open up some interesting possibilities, maybe including
> inline multi-mode stuff. and it would fix your problem. you could
> maybe color the one that is in the file itself differently, or keep
> all looking equal status to the user.
>
> i think there has been discussion on the mailing list and probalby on
> emacs-devel recently about an idea similar to this. it migth be teh
> same as what you want. not sure.
>
> it goes by a different name. smoevbody will chime in i hope.
>
> On 5/2/20, David Rogers <davidandrewrogers@gmail.com> wrote:
>> Is there a method I can use to include the same subtree in several
>> different
>> files, such that editing one instance of that subtree updates the others
>> automatically? I'm hoping to be able to view the full version of the
>> subtree
>> in each of the files, without having to follow a link; if what I'm
>> describing isn't really possible, then I'll just use links in the other
>> files to point to the original subtree, which I know how to do. I'm just
>> exploring the sometimes-unexpected possibilities. :)
>>
>> --
>> Thanks
>> David
>>
>>
>
>
> --
> The Kafka Pandemic
>
> What is misopathy?
> https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
>
--
The Kafka Pandemic
What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
next prev parent reply other threads:[~2020-05-02 21:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-02 20:09 Can I "multi-include" a subtree? David Rogers
2020-05-02 20:57 ` Samuel Wales
2020-05-02 21:00 ` Samuel Wales [this message]
2020-05-02 21:19 ` David Rogers
2020-05-02 22:44 ` Samuel Wales
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJcAo8vk2CUVUjHsEYHseoQWPKfxt4RZckCmdBEEzHWSQ2tJiA@mail.gmail.com \
--to=samologist@gmail.com \
--cc=davidandrewrogers@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).