From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Moreau Subject: Dynamic #+INCLUDE content loading when revealing subsection Date: Thu, 19 May 2016 09:35:53 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c03d9a2ac3fe05332d064d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3IUu-0000Aw-Kk for emacs-orgmode@gnu.org; Thu, 19 May 2016 03:36:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3IUs-0007A3-Dl for emacs-orgmode@gnu.org; Thu, 19 May 2016 03:35:55 -0400 Received: from mail-yw0-x22a.google.com ([2607:f8b0:4002:c05::22a]:36673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3IUs-00079y-8q for emacs-orgmode@gnu.org; Thu, 19 May 2016 03:35:54 -0400 Received: by mail-yw0-x22a.google.com with SMTP id x189so69902788ywe.3 for ; Thu, 19 May 2016 00:35:53 -0700 (PDT) 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: emacs-orgmode@gnu.org --001a11c03d9a2ac3fe05332d064d Content-Type: text/plain; charset=UTF-8 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! --001a11c03d9a2ac3fe05332d064d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I have a qu= estion regarding the include of sub .org files into a main file.
A= s for now, I know it is possible to do that with

**** include file<= br>
#+INCLUDE: "archives.org&qu= ot;

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

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

**** archives.org=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 :INCLUDE

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

I may learn, bind the shortcut, or mak= e a macro to do that but I was just wondering if it already exists or if yo= u 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!
--001a11c03d9a2ac3fe05332d064d--