emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Dynamic #+INCLUDE content loading when revealing subsection
Date: Thu, 19 May 2016 10:21:17 +0200	[thread overview]
Message-ID: <877feqfog2.fsf@gmx.us> (raw)
In-Reply-To: CAD9K4eC2XKO+q7DaomXOMi8j0ZgM0qB8s5WRmNz3ni2UW+-RGA@mail.gmail.com

Hi Steve,

Steve Moreau <moreau.steve@free.fr> writes:

> Finally, if it doesn't exist and you think it would be nice to have, would
> you please suggest an entry point in the source code to start digging ?

It does not exists.  To load all included file into your buffer you can
use ‘org-export-expand-include-keyword’, but it’s a one-way import(!).

What I think you are talking about is combining two files into a single
buffer, dynamically.  I presume that when one clicks "save" the changes in
the surrounding regions 1 and 3 are to be saved into file 1 and the
changes in region 2 are to be saved into file 2.  But what if you add
lines to the bottom of region 2?  How would Emacs know to which file it
belongs?  You’d need some sort of delimiters.  Maybe a couple of (visual)
markers would be enough.

Anyway, such infrastructure should be part of Emacs-core IMO.  If it
exists, you can try to incorporate it into Org.  See
‘org-export-expand-include-keyword’ to familiarize yourself with the
current implementation.

Hope it helps,
Rasmus

-- 
Governments should be afraid of their people

      reply	other threads:[~2016-05-19  8:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-19  7:35 Dynamic #+INCLUDE content loading when revealing subsection Steve Moreau
2016-05-19  8:21 ` Rasmus [this message]

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=877feqfog2.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --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).