From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IFhKJDXzi2BO9QAAgWs5BA (envelope-from ) for ; Fri, 30 Apr 2021 14:08:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UH0cIDXzi2B/XQAA1q6Kng (envelope-from ) for ; Fri, 30 Apr 2021 12:08:21 +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 11DE61A872 for ; Fri, 30 Apr 2021 14:08:21 +0200 (CEST) Received: from localhost ([::1]:36072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcRwR-0006dX-BL for larch@yhetil.org; Fri, 30 Apr 2021 08:08:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcR4O-000847-5N for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 07:12:29 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:49177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcR4K-0004xA-5I for emacs-orgmode@gnu.org; Fri, 30 Apr 2021 07:12:27 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id DD02A240002; Fri, 30 Apr 2021 11:12:20 +0000 (UTC) From: Nicolas Goaziou To: Samuel Loury Subject: Re: stability of toc links References: <877dkzg9y2.fsf@nicolasgoaziou.fr> <87wnsx9rcj.fsf@nicolasgoaziou.fr> <87y2dc82ct.fsf@nicolasgoaziou.fr> <87sg3j4vbl.fsf@gmail.com> <33fd87ff1332b56114909973804df669@isnotmyreal.name> <87h7joibxc.fsf@gmail.com> <87pmycay41.fsf@gmail.com> Mail-Followup-To: Samuel Loury , Tim Cross , emacs-orgmode@gnu.org Date: Fri, 30 Apr 2021 13:12:19 +0200 In-Reply-To: <87pmycay41.fsf@gmail.com> (Samuel Loury's message of "Fri, 30 Apr 2021 12:02:54 +0200") Message-ID: <87h7jouiuk.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.178.230; envelope-from=mail@nicolasgoaziou.fr; helo=relay10.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: Tim Cross , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619784501; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=HzSnq+AoOmKOebYRWUMtdA0DQiKu0TYrv9OqAOEqzuY=; b=e4OECMtImpuKyIk1bhz+ikhuoSv8RGMNyP1smAfUOoiSGv30BhJVEW/v2eeEz2njHJKv+x u8B6EfSyYkjYwEc/CMLLktslmSNIQs+AOSkepEmNrVxqXNRIU+T2ockl23sOwphlsRQifR sVqvmEP6lVBVw2/mPouUhUY//cA7qiUPIJYzchFNe9lcNmK8ozwxpkxJcki2mnhaiO3/Vx PDGg7rko2gg3j/Aqgljxn72sQOZmqufRqeWakNfucHUx1h7o8xnLwPjSHpxQyAY0uTc7Lt ZnwYWqDf/cLtHKyPCxtv5xTedFFaKO69tWyawdH3gnXGhIW1JJoVuDKOYSr9LQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619784501; a=rsa-sha256; cv=none; b=VtztGRq9vMjHUvq9CMzzpva91fXjdpCkIWDiGIDJfq13qCo2ncyG1AV2wlYZrmmZc8n1zF G4if8ESe0WMYJaZ3dG0xchwZfX7ZoAi2JkGc2UvbaLg6/9mF3wER59MI3lLBxcVxbNZTU6 BlhecJ9741MYHDJFrMPX8aTyCKJ6f6jbdIVpymaGEopAqRRJas/wnR/YfQ/cjWw/DlIr3Y a86Dv3f90pU2+i5A+OMOXleBfLcsK9jMMAaY4PXTllO3evI1yIrm3X0aDBsf06DeyH/EMt 6q8THiPgR943MNcGKgLtzeiOlVrF1FgDh12W2J+Ech1uW22OoR2XIC/zYEE7cg== ARC-Authentication-Results: i=1; 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-Spam-Score: -2.45 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: 11DE61A872 X-Spam-Score: -2.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: lyFwqfuWaFMz Hello, Samuel Loury writes: > The publish feature only means exporting several files at once. You can publish a single file, too. It makes sense when a file is always exported to the same location, possibly with the same configuration. > IIUC, what was written was that when using the publish feature, the exported > html pages will be coherent and a link in one document pointing to > another document of the same publish call won't be broken. > > But IIUC, publishing the whole stuff again will result in totally > different links. They will still be coherent and no broken link from one > document of the whole to another. But a browser bookmark pointing the > published lot the first time won't work with the same lot the second > time. > > Did I understand correctly? That's correct. Org provides a mechanism, called `org-export-get-reference', for creating internal references, which relies on randomness + cache. But it explicitly removes internal references not actually used from there (see `org-publish--store-crossrefs'). Keeping those references instead would make all links stable, of course. Regards, -- Nicolas Goaziou