From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UM3mCk8b9l9nfwAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 20:19:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sHO3Bk8b9l/IWAAAB5/wlQ (envelope-from ) for ; Wed, 06 Jan 2021 20:19:27 +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 C9893940149 for ; Wed, 6 Jan 2021 20:19:26 +0000 (UTC) Received: from localhost ([::1]:36586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxFHA-0006dA-L5 for larch@yhetil.org; Wed, 06 Jan 2021 15:19:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxFGn-0006d0-RN for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 15:19:01 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:36377) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxFGm-0002md-CG for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 15:19:01 -0500 Received: by mail-wm1-x32a.google.com with SMTP id y23so3693175wmi.1 for ; Wed, 06 Jan 2021 12:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nzdwhoO/335DST1jKTg3OfZs9OcnLjUoztGx+q/3cnk=; b=X7HNZujit0BF60xeuTZnz++rUYPeUyQKMuMTopW/TfpuQy7/dKUD8uZcq62GLjfgD/ yb0hwWxxwpsSB/kGrnr4FgVtero37yS6kOuN04FEZW+9PDqAGdhZ89Qqmjy0ytkZ+6w1 na5jPNNIO9s3yL79gihTRO2P5dLNRJOXvPRC5qBVVFYznab8s1iGfzNiMrvmteE7oHIC +50aXJk2nkWW583hVqZPNH2t28x9nAHgkc5ZqPABpEn7z4X8wirb8sNqmCsWYhYgZWui HjWRoZNG5elGUF/0S8lzx7YWrvJZ/DlqxuoDQTOnIFHAanLEPmWw6+plPqZE/g75b8ip +Bsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nzdwhoO/335DST1jKTg3OfZs9OcnLjUoztGx+q/3cnk=; b=AU7YgwdUZTVF4RWoCoi2yk1lsiYcp3Y3MpIsaSwB8i89JzgIDKZYkjIY97Dd0mufUG En4PuC7t2JOVhVHuwxZ32tkV0UxiPw7SoE6+XgBMW3MfK0CLMkXsd4u3sNC4gcH8Pf+3 AmHifGJRbCHYCqQEw+B/Fg9EHJZj2Phq5CEFloVvZgWO/yFjRKs9a8YRUrVQIKfeqq4t M4Ag673/XdOozk3q+xkjVTMK8rSTjxBz+yBsiC8iJJDG3mbkvPiHDG1mKw0kbRW0nec4 Y/RQQpepyS1loXZLkdJLvoTyL4W4T7uTr9ywZp6lOM43vY62iKvjm9DNBEk/YaGRKnfm Ce8g== X-Gm-Message-State: AOAM532JM1rQKjCV9bMvZQl353uObu2yHO0BPCRzBv1HxBlgJgTHOS02 EVBrBZR8LWuDOBwei+RSDDWTE2xxUZhQyf1Zjzo= X-Google-Smtp-Source: ABdhPJy2/A0pMIZKuuRy4Tz8tmoU6PB2Rsmn4t+M17jMrOAxlCeyZTNu/f9NU/uIRiwHEc4zFLeiDlrdFR7Lt/PyVl8= X-Received: by 2002:a1c:6056:: with SMTP id u83mr5065111wmb.90.1609964338701; Wed, 06 Jan 2021 12:18:58 -0800 (PST) MIME-Version: 1.0 References: <87d4b6c4-aa92-8d98-5a1c-33fe13f77646@XXXXXXXXX.XXX> In-Reply-To: <87d4b6c4-aa92-8d98-5a1c-33fe13f77646@XXXXXXXXX.XXX> From: Tom Gillespie Date: Wed, 6 Jan 2021 15:18:47 -0500 Message-ID: Subject: Re: temporary inclusion of a read-only file / inline element into orgmode buffer To: HJ Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=tgbugs@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.56 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=X7HNZuji; dmarc=pass (policy=none) header.from=gmail.com; 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: C9893940149 X-Spam-Score: -3.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: acfF4VIPZaWd Check out org-transclusion, it covers some of the use cases you describe or could be used to implement them. The issue with giant results, especially those that have very long lines, is more challenging, but being able to specify that different output streams should go to files instead of results might be a start, or having them go to a file and having process do the equivalent of tail on the file to continually update the results stream of the buffer would be really useful (if it could be done without disrupting other editing flows. The shortest path to splitting file vs buffer would probably be to decorate org-bable-insert-result (in ob-core.el) to detect the size of the result and write the full result to a separate buffer if it is beyond the limit you set. Best, Tom https://github.com/nobiot/org-transclusion