From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EAZoB30H9l91QwAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 18:54:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KJ8DA30H9l9qLgAA1q6Kng (envelope-from ) for ; Wed, 06 Jan 2021 18:54:53 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D02509404E1 for ; Wed, 6 Jan 2021 18:54:52 +0000 (UTC) Received: from localhost ([::1]:46578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxDxL-0006gh-RU for larch@yhetil.org; Wed, 06 Jan 2021 13:54:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxCud-0004Uf-17 for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 12:47:59 -0500 Received: from mta.vmaly.com ([94.242.65.182]:48583) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxCuU-0004kw-8P for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 12:47:58 -0500 To: emacs-orgmode@gnu.org From: HJ Subject: temporary inclusion of a read-only file / inline element into orgmode buffer Message-ID: <87d4b6c4-aa92-8d98-5a1c-33fe13f77646@XXXXXXXXX.XXX> Date: Wed, 6 Jan 2021 18:47:41 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: none client-ip=94.242.65.182; envelope-from=orgmode-1@hj.proberto.com; helo=mta.vmaly.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 06 Jan 2021 13:52:58 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D02509404E1 X-Spam-Score: -2.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: Fou++ZWCWERu   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!