From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IBCfA++xwGA0LgAAgWs5BA (envelope-from ) for ; Wed, 09 Jun 2021 14:19:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yNOSOu6xwGCaAgAA1q6Kng (envelope-from ) for ; Wed, 09 Jun 2021 12:19:58 +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 6297B2BB27 for ; Wed, 9 Jun 2021 14:19:58 +0200 (CEST) Received: from localhost ([::1]:35678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqxBd-0002gF-4V for larch@yhetil.org; Wed, 09 Jun 2021 08:19:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqxAq-0002fm-92 for emacs-orgmode@gnu.org; Wed, 09 Jun 2021 08:19:09 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:40221) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqxAo-0001Do-0E for emacs-orgmode@gnu.org; Wed, 09 Jun 2021 08:19:08 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 263B940010; Wed, 9 Jun 2021 12:19:01 +0000 (UTC) From: Nicolas Goaziou To: Spencer Baugh Subject: Re: HTML export uses anchor ids which change on every export References: <87wnrhl7z7.fsf@catern.com> <87bl8tz5dr.fsf@nicolasgoaziou.fr> <87im2okk5w.fsf@catern.com> Mail-Followup-To: Spencer Baugh , emacs-orgmode@gnu.org Date: Wed, 09 Jun 2021 14:19:00 +0200 In-Reply-To: <87im2okk5w.fsf@catern.com> (Spencer Baugh's message of "Tue, 08 Jun 2021 19:31:55 -0400") Message-ID: <87v96ngrij.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.183.194; envelope-from=mail@nicolasgoaziou.fr; helo=relay2-d.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: 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=1623241198; 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=WRAh8BvOEm0WTQx1XQ8/Bm5emqNf82Tp47cpXOPygXw=; b=WtACxO8X3adQ27KF0EDLAdZ5dPtPV/4J2DDWNBzfudEpRXETiQ2tqu/SxPpP/+zTaJscxr QgyT+EbCxc2IU3H1cusaJ4YfocPctxSs3XqH5cH9EEVLNMu2RyKVY9BPweK+76jEN6CScL Koe7f3iApSd8GIe89lMbSArzQHbhVrdbA9ySFBTWSvOPVvC8ehFoeT1XxesfBuGHM2v0+6 0tEa9FmtdV8sWSMxhOR9BZZP7TaMRWiHPzFfC2FpMCWTZ62Pl8DfH5JpB+fzMzZDdJiP3G RtcUPIwVP3OfjfBnDi8JNryL9Ev+OLilu6PKWJzFEfy+t0/8nD9VYpf6PAQHIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623241198; a=rsa-sha256; cv=none; b=QXcWA3Q1FfANmXDpmVqFwsOpa1pfrnZwPaC8+I71qU64zIETyBuQZkTfMhjGJ3g9rfAlRn 3kYuFs+X+psLhHDDQWb1Zvsp7W9kQRO/rlJbbdXUC9PBTRYwUAfjAAO04ifoFa0BnJpI3x ZNUyQECPQbSa8O0wm5D9QynAjF+DIo2LsCglPOlMTvpBkZ2kbhe4mZvDCTP+Ra0JC+suHC G/tBZfMyMIKtgMSGfN2uW0s3Ac0cyK6su3RLe3tBt2a3JmjU8Jp297jY0EmAeJQttgAxKF 7a0BugXlWJrciOEs1F7m8H+iDRx63DmM/7k7xWZe125KNEVnhcSNuXuvecsJRA== 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.43 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: 6297B2BB27 X-Spam-Score: -2.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: /Salg5Y6YLdZ Hello, Spencer Baugh writes: > Nicolas Goaziou writes: >> No, for public links, CUSTOM_ID is the only sane way to handle this. >> Even "sec-2" could betray you if you slightly modify the document. > > I understand and agree. However, "sec-2" is strictly better than the > current situation in terms of link stability: There are many document > modifications that don't change "sec-2", and there are no document > modifications that don't change the current id format. > > If some user likes link stability a litle bit, but not enough to add > CUSTOM_ID to every single heading, then providing some option to > generate ids like "sec-2", which are stable in some situations for very > little cost, is good for that user. I disagree. "sec-2" is not "strictly better". Actually, long ago, Org used "sec-2", or "outline-2", but we got bug reports about that (in particular, it broke publishing) too. A weaker poison is no healthier. Please note that, if you're exporting again and again the same document, you ought to publish it, in which case referenced links are stable. Also, not too long ago, Timothy had a different suggestion for the internal link stability problem. One idea to move forward could be to provide a defcustom to let users use whatever function they want to generate internal links. I think, however, it might be tricky to have that function handle properly duplicates. Regards, -- Nicolas Goaziou