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 2PWuMt0kC2DUYAAA0tVLHw (envelope-from ) for ; Fri, 22 Jan 2021 19:17:49 +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 KOCCLt0kC2AUUQAA1q6Kng (envelope-from ) for ; Fri, 22 Jan 2021 19:17:49 +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 4BD3D940105 for ; Fri, 22 Jan 2021 19:17:49 +0000 (UTC) Received: from localhost ([::1]:34888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l31wJ-0003Io-Jg for larch@yhetil.org; Fri, 22 Jan 2021 14:17:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l31vg-0003IU-NM for emacs-orgmode@gnu.org; Fri, 22 Jan 2021 14:17:08 -0500 Received: from server173-4.web-hosting.com ([68.65.122.210]:51918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l31ve-0006e7-3F for emacs-orgmode@gnu.org; Fri, 22 Jan 2021 14:17:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tcSzQciv22OV4xj61tP2rVHl1HkyOVGmQLCxzbiGNzQ=; b=fROtR1ZSk42ibieohWP+/FYcao gu7JxJZRnymzTy4gATbk3+Ce+Le/0ECTv3UqwQoRdOJb1hxoxBwb3zraCMdRqD4P+jBfmI3UDeNR0 DpVzFDTDm0uIFCdUzakwzlkIGZWB2SNDKPg/dudEp4aSBNuNP/26eeoMfRgQ/pS2OobVJ8zhHea3Y 1ha13HzRVhoqakqxZNLIpWcz8VIFGYodA84FtGicWo/GMpCw+JCIwFBtLIsbLV/8CQDHKDNGnJ+s6 rcsw0Lwe57WzJAXU24Pv0Af9wMdicW+wK+R5kcX+HEslxtudb6759MlnyJlctVRoo9QH6co/WPOBr oxAFixAw==; Received: from [::1] (port=55272 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.93) (envelope-from ) id 1l31up-000jXK-Q6 for emacs-orgmode@gnu.org; Fri, 22 Jan 2021 14:16:20 -0500 MIME-Version: 1.0 Date: Fri, 22 Jan 2021 14:16:15 -0500 From: TRS-80 To: emacs-orgmode@gnu.org Subject: Re: How can I keep Org-id links from breaking when moving files? In-Reply-To: References: <87ft2wvktj.fsf@gmail.com> <87lfcn3kij.fsf@gmail.com> Message-ID: X-Sender: lists.trs-80@isnotmyreal.name User-Agent: Roundcube Webmail/1.3.15 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=isnotmyreal.name header.s=default header.b=fROtR1ZS; 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: 4BD3D940105 X-Spam-Score: -0.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4PPJf5vjas6e On 2021-01-21 08:14, arozbiz@gmail.com wrote: > there's no way to programmatically make sure that Org can find those > IDs again (since there's no way to simply add a folder, rather than a > list of files, to =org-id-locations= or =org-id-files=? Being that this is Emacs, you can do almost anything you want, with a little Elisp practice. ;) For example, you could write some custom move command which would automatically add the new folder to some variable or file with a list of folders to add to places for org-id to look in from now on. However perhaps we should take a step back and ask ourselves if this is a good approach? And IMHO, starting to scatter files here and there throughout the filesystem is not a good idea. Even if you implement above mentioned custom Elisp, it adds (IMO, needless) complexity. Therefore I would think long and hard if that is actually really necessary, before starting to go down that path. Just my $0.02. Cheers, TRS-80