From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IMyjC7nerV6GHgAA0tVLHw (envelope-from ) for ; Sat, 02 May 2020 20:57:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yOb4JcPerV7eEgAAbx9fmQ (envelope-from ) for ; Sat, 02 May 2020 20:57:39 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 EB585942843 for ; Sat, 2 May 2020 20:57:35 +0000 (UTC) Received: from localhost ([::1]:45266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUzCa-0004a6-29 for larch@yhetil.org; Sat, 02 May 2020 16:57:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUzC9-0004Zk-Jg for emacs-orgmode@gnu.org; Sat, 02 May 2020 16:57:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUzC7-0000E6-V3 for emacs-orgmode@gnu.org; Sat, 02 May 2020 16:57:09 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:36924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUzC6-00007m-On for emacs-orgmode@gnu.org; Sat, 02 May 2020 16:57:07 -0400 Received: by mail-lf1-x135.google.com with SMTP id t11so6476745lfe.4 for ; Sat, 02 May 2020 13:57:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=U0qvrdAgVZBSMBGwzJpeZ4lK4aNmM6xAIugxGRV4E7s=; b=Z2t2K6f8vgDFDyDa6ZKziTaO73J05jddN/HWAaUE11upyZV0XD5BVWrPN/6+yo8AHp PEGyQTUsfktKixlmS5VwJhwrdmUaQW0AMpRUh8z2t8dlUEZA0Sc+nstOEvMY+uG2Iv5N b5l9uYQ4Z4D7OaSOenpAij13QkiKcSJAkcDUInucSr8NfkkTPKA+ObpyAmqaIELEfhE6 P5mz8kYK9IfpDNi1R9VUNXYguk9+TzncgIJAFPdmQJkIym43tzZi9sthycYdLcOfo9wj CYnC3yC5Hc6Kqpqk11B51GvU2hYWAHa9CCZDae3ed++SscWDh8YnYz01qnXULD828Xx6 4M0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=U0qvrdAgVZBSMBGwzJpeZ4lK4aNmM6xAIugxGRV4E7s=; b=EF86XlETND2RG+96426p4rfjD5WZWR3xq2N9Qid01tEW9y5q2Lh0G5cdxX3r+NWGB7 ShgNdP0xa0FZ2Q35fejo68eocpvtAwIkXBbeYXcb2/bxcMbn1moEw1mQzE+Y+Pzj0wHD pSNw0bQJPryPwSc4siH87klD0TgAlaUyXOS5mSrnxYMacXUYLhiDUjMFGkBrz3FWF7E4 +cLs/MPeaNhay881tmpxggNNFvq7SK+C+JjpwuLIDvJCYe2NSAsyo8+nUDkNt1mZJPhO xGIQGTqdGvsvJ1YvpZQgIm/O7wE5Ce080pFKt3ctt/39ByN1GPUz7+w1xelCr3SZ3IvL uWTw== X-Gm-Message-State: AGi0PubNHq8IcgbCKgM9FkFSznH01jFaLFqj8wc1dDtjdtfby2aAvNV8 iBUHGx0Rw3jTSII0EbRRXnt50ENHZQekRceEhpg= X-Google-Smtp-Source: APiQypIIjkgFtuMsObpCRKgvsKWQw4EHeRviBxCVgtVvVQkYW7F7j6aXGmKjYtzpqKBTTdwzRKhyutQZv5W5hnTT9xc= X-Received: by 2002:ac2:5290:: with SMTP id q16mr4718052lfm.108.1588453023741; Sat, 02 May 2020 13:57:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac2:53a8:0:0:0:0:0 with HTTP; Sat, 2 May 2020 13:57:02 -0700 (PDT) In-Reply-To: <3CBD8ED5-4D08-49D8-A120-4FCB68ACC9E5@gmail.com> References: <3CBD8ED5-4D08-49D8-A120-4FCB68ACC9E5@gmail.com> From: Samuel Wales Date: Sat, 2 May 2020 13:57:02 -0700 Message-ID: Subject: Re: Can I "multi-include" a subtree? To: David Rogers Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=samologist@gmail.com; helo=mail-lf1-x135.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::135 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@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: 0.79 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Z2t2K6f8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [0.79 / 13.00]; GENERIC_REPUTATION(0.00)[-0.49497961736369]; MX_INVALID(1.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_BLOCKED(0.00)[gmail.com:dkim,2001:470:142::17:from]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.15), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[thekafkapandemic.blogspot.com:url]; FROM_NEQ_ENVFROM(0.00)[samologist@gmail.com,emacs-orgmode-bounces@gnu.org]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: npSPIApVNi03 stating the obvious: org typically stores a forest [files] of trees of nodes. some things you want to put into it are best expressed more generally than with trees. i call it [boring name] the tree problem. there are a bunch of existing sort-of solutions, but to me the best is linking [as you mentioned], using org-id. although that only links to entries, and it requires following links. one entry becomes canonical. you have to set metadata for the linking node. there are solutions not implemented that could be better that have been talked about on the mailng list, but they still have the issues of following links or other issues. duplication is out the window because dry. what you seem to want seems to require a feature in emacs in which you have virtual includable regions. this can be done to a large degree at the buffer level, but not at the region level. that would open up some interesting possibilities, maybe including inline multi-mode stuff. and it would fix your problem. you could maybe color the one that is in the file itself differently, or keep all looking equal status to the user. i think there has been discussion on the mailing list and probalby on emacs-devel recently about an idea similar to this. it migth be teh same as what you want. not sure. it goes by a different name. smoevbody will chime in i hope. On 5/2/20, David Rogers wrote: > Is there a method I can use to include the same subtree in several different > files, such that editing one instance of that subtree updates the others > automatically? I'm hoping to be able to view the full version of the subtree > in each of the files, without having to follow a link; if what I'm > describing isn't really possible, then I'll just use links in the other > files to point to the original subtree, which I know how to do. I'm just > exploring the sometimes-unexpected possibilities. :) > > -- > Thanks > David > > -- The Kafka Pandemic What is misopathy? https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html