emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: HJ <orgmode-1@hj.proberto.com>
To: emacs-orgmode@gnu.org
Subject: temporary inclusion of a read-only file / inline element into orgmode buffer
Date: Wed, 6 Jan 2021 18:47:41 +0100	[thread overview]
Message-ID: <87d4b6c4-aa92-8d98-5a1c-33fe13f77646@XXXXXXXXX.XXX> (raw)


   Hello,

    I was wondering whether anyone here knows how to effect a temporary 
inclusion of a file into an org file. What I mean:

    I would like to use orgmode to keep a documentation / devops 
document. That document will contain commands ( with lots of 
start_src...end_src...results blocks), where such commands usually 
produce small results (20-60 lines), which are to be included inside the 
document. But, on occasion, the command will produce 2,000,000+ lines of 
output. Practically this is a difference that requires a different 
storage approach, yet semantically inside orgmode I would like to 
experience as little difference as possible.

   The question is whether anyone knows of a way to keep the small 
outputs "inline", but have the option of automagically store the large 
output inside a separate file (this file may be treated as a read-only 
file), but still be able to operate on it as if it was not an external 
file but an part of the current org file. Perhaps based on a toggle 
command, one could say "include all "external" files inside for a minute 
while I make my searches, and then purge the read-only "external" files 
out of current buffer to keep emacs small and speedy.

   This might be similar in concept to "inline images" - they are a 
display of read-only file into portion of the buffer - except that no 
searches and other text operations can be performed on it.

   Related question: Imagine you are browsing a document which contains 
an headline with an inline element (like an image or said large number 
of output lines) which is expensive to obtain and display. Is there a 
way to say to emacs to delay the loading of this expensive / huge 
resource until e.g. 5 seconds passes or I press F6 or something to 
indicate that I am willing to pay (money, time, memory resources) to 
have the inline item displayer?

   Any ideas or pointers please?

    Thank you!!

    - HJ

PS: I dare not ask whether such dynamic  inclusion / exclusion could be 
performed on a read-write file as well, but if anyone dares to venture 
out on this question, it would be most welcome. This could expand (my) 
horizons of orgmode's usability!



             reply	other threads:[~2021-01-06 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06 17:47 HJ [this message]
2021-01-06 20:18 ` temporary inclusion of a read-only file / inline element into orgmode buffer Tom Gillespie
2021-01-07  4:35   ` Christopher Miles

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=87d4b6c4-aa92-8d98-5a1c-33fe13f77646@XXXXXXXXX.XXX \
    --to=orgmode-1@hj.proberto.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).