emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Steve Moreau <moreau.steve@free.fr>
To: emacs-orgmode@gnu.org
Subject: Dynamic #+INCLUDE content loading when revealing subsection
Date: Thu, 19 May 2016 09:35:53 +0200	[thread overview]
Message-ID: <CAD9K4eC2XKO+q7DaomXOMi8j0ZgM0qB8s5WRmNz3ni2UW+-RGA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]

Hi,

I have a question regarding the include of sub .org files into a main file.
As for now, I know it is possible to do that with

**** include file

#+INCLUDE: "archives.org"

The target can be opened with C-c ' into another buffer (which runs the
command org-edit-special)

Alternatively, is it possible somehow to load the target file *content*
dynamically on revealing the subsection with TAB (as it was part of the
current buffer).
For example, with an unknown tag such as:

**** archives.org
:INCLUDE

Then, revealing this section would load, shift, and insert the archives.org
tree below ****

I may learn, bind the shortcut, or make a macro to do that but I was just
wondering if it already exists or if you could suggest a better way I
didn't think of, especially for the fact that once loaded/revealed, the
buffer is like there was just a single file (which is better for me to
search stuff).

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 ?

Thanks.
Have a nice day!

[-- Attachment #2: Type: text/html, Size: 1568 bytes --]

             reply	other threads:[~2016-05-19  7:36 UTC|newest]

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

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=CAD9K4eC2XKO+q7DaomXOMi8j0ZgM0qB8s5WRmNz3ni2UW+-RGA@mail.gmail.com \
    --to=moreau.steve@free.fr \
    --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).