From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gG18LKIpgGBRcgEAgWs5BA (envelope-from ) for ; Wed, 21 Apr 2021 15:33:22 +0200 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 wOAJKKIpgGDBMQAAbx9fmQ (envelope-from ) for ; Wed, 21 Apr 2021 13:33:22 +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 09BCB15DB4 for ; Wed, 21 Apr 2021 15:33:22 +0200 (CEST) Received: from localhost ([::1]:39418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZCym-0006Qh-5G for larch@yhetil.org; Wed, 21 Apr 2021 09:33:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZCy8-0006PA-LX for emacs-orgmode@gnu.org; Wed, 21 Apr 2021 09:32:42 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:33657) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZCy6-0005VH-Aj for emacs-orgmode@gnu.org; Wed, 21 Apr 2021 09:32:40 -0400 Received: by mail-wr1-x42e.google.com with SMTP id g9so25376926wrx.0 for ; Wed, 21 Apr 2021 06:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=yiITm3TzurMEnKxb442R2/F0v9qYU7yjaRHL3e3kTKQ=; b=Em8/6vP6TwOHi7wDm5GC03/vAaJVJAB/Vu5iZ88Og25/V89RzmrOUy8GGED2vH9sTR ZSRgYKJE//ASaQuPdF5JAhjt+S7xwwN9u2CfHLu9i7P2p5xX2+KsoaGSBzmDqM7kl0Jf EtN3+9lC5NZEcKyB/XBcZhnuc1Fcf7INGpimMtRZYUtrimNQERsVYl0FeooBQRJ9N9gz P7W1ov6cQZ3eQFc/Jjz/s+9NTEC6+doTcEPZygV1Jd69mVLBUWEDZeZb/wSe8kYx/WEw AQ2kHy+jG+IHWrtoBljyzVbMxt8yeunA+Uf34w/ix45jvapMsPsTiWceFBHA/lHXXHcG yeaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=yiITm3TzurMEnKxb442R2/F0v9qYU7yjaRHL3e3kTKQ=; b=hHNu14JGb1CS4C57SJbEvV8FEHM2nhccVB26NxGgaB/CFMUdq/5KFl2BpBksCGZLHm cwgqDbogKO/T9BAzd3FhzqCXZUeMp3XgYSYGjMyQSIX3LpVcluRdtziI7s9BQ7/1Hf+k qjeNawiRs3CldGEgCRU2hT0zY+pn0bDzYA/EwuZOQ0n2T+YGWZZJMKdBfBUwGODyWC5P uzksEvMEB6PkcJn2fZmAFku3sWKm4AMAfGuW9bZ45IZq1Kxda8wP6hQn+VfcRcPL02BM 2Nb7gg9t1VXZ+54QgKwxB8klyw6r+HmOTMqFAznyQOvNRuwLt43FAmuDw2x53qVpdtX7 0z7Q== X-Gm-Message-State: AOAM5313gfqlmhdBDitYIlcDSompBImVTH/f0FIeqnH9VkeSQi3eZEm9 sEAyQdxF6ln835i+mg58UsA= X-Google-Smtp-Source: ABdhPJxcC5gwe6lb0e8MwvVBF3rtPD5Hi2nLQEraW5EGIgls2b4apE6eWG2IoQeyjhbAI/+dF8Fc5A== X-Received: by 2002:adf:b344:: with SMTP id k4mr27451072wrd.205.1619011955636; Wed, 21 Apr 2021 06:32:35 -0700 (PDT) Received: from localhost (131-199-28-81.ftth.cust.kwaoo.net. [81.28.199.131]) by smtp.gmail.com with ESMTPSA id i133sm2385294wmi.40.2021.04.21.06.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 06:32:34 -0700 (PDT) From: Samuel Loury To: Nicolas Goaziou , Samuel Wales Subject: Re: stability of toc links In-Reply-To: <87y2dc82ct.fsf@nicolasgoaziou.fr> References: <877dkzg9y2.fsf@nicolasgoaziou.fr> <87wnsx9rcj.fsf@nicolasgoaziou.fr> <87y2dc82ct.fsf@nicolasgoaziou.fr> Date: Wed, 21 Apr 2021 15:32:30 +0200 Message-ID: <87sg3j4vbl.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=konubinix@gmail.com; helo=mail-wr1-x42e.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@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=1619012002; 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:dkim-signature; bh=yiITm3TzurMEnKxb442R2/F0v9qYU7yjaRHL3e3kTKQ=; b=LLT7LBCfmFFoyZITj962rCoU27WPuWwNgW32WHTH10YRDfZLIpJtyiWNjHzhi73NhteksJ BZl4TvsijMujQ6ElU8JlsE15NWM/hOlGSJguy9GnT5PXAS4AoMpsO8zyigC2EHBvzToWP9 sv3UbJda02e7aNWmYOPp51X3glq4K6HDHo38tJqofdKFAHxFyV+6DlIiBXSbIZmByDHxTn jmo9o58pvWfMAEMV1rzpKHeOZyjHeeRDVRgt81bpNDgAal2LeXTYekUX7bTj8OKL02FZcg R1qNtpwSu0ZlC+osEPc0iGskKSIevCXfY3acXhhIw8jhP2MDvjB+/ye/VhT/Fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619012002; a=rsa-sha256; cv=none; b=njIkYCihIEJXaVlPe9dyyhAYimmiy3LWhD+6TJ7rrB+2snUwwswSp/3Do631ObS6HmWczA jyGr/whicEkB6lLUeLTbzKnAYX8JCkAddW9KS0W0xgGyGKRwCWYdDYOk5OSN66D0cALM5C ZxS3rJ7gBHJyJ8TSop7FSTkgqReZcwJHTbn8T7BnFvz9ls5ZDUr7E2RU600xkou7xMG2p2 zbOB6qdqtq0gMoDavFnJYqjzQIWy3szsif65ZLYPUvWYfoM/2vKSdW7TP/ItMXIj6x55Hp J7ll4uT5bVbp2tEWxD6k/urQj2+34/QW6Nt2Mor90Am2RVkocIFgqBecztEvpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Em8/6vP6"; 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-Spam-Score: -5.24 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="Em8/6vP6"; 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: 09BCB15DB4 X-Spam-Score: -5.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: TZkIWjzHsJJZ --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: [...] > Samuel Wales writes: > >> i was referring to: >> >> Message ID <87v9dbelky.fsf@gmail.com> >> >> in this thread. >> >> [and other posts in this thread related to it.] > > Unfortunately, I won't have time to look at the whole thread anytime > soon. However, feel free to explain how "tec's fix" works, or point me > to the exact post where it is explained so I can understand it. > >> the problem as i see it is link stability in generated output. > > The links are stable if you publish a document. Note that you can even > "publish" a single document. > > For exported (i.e., one off documents), this is not so an issue (IMO) > since you have custom ID. I assume this was evoked in the thread. I think you are both talking about the same thing but have different judgment calls about it. Say you want to export an org file, then share the link to a friend to a heading, like https://mysite/#orgd260798 Imagine that for some reason, you re export the file, then new ids are generated and the links becomes broken. Nicolas Goaziou, I know you understand this and propose to use CUSTOM_ID to make those ids static. But IIUC, Samuel Wales does not know in advance what heading he will share, so he would have to add CUSTOM_ID everywhere, just in case. This sounds like a lot of unnecessary work. The solution of tec=C2=B9 appears to be a new generation of the html ids ba= sed on the heading content rather than apparently randomly generated, making the generated link become the same across new generations. I hope it clarified the discussion. My best, =C2=B9 https://tecosaur.github.io/emacs-config/config.html#nicer-generated= -heading =2D-=20 Konubinix GPG Key : 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEWZO+etpl4tkGzlw2ddI87XQ5EGoFAmCAKW4ACgkQddI87XQ5 EGqpcgf9F8Lpb7pP8xR+PRxjJuwdLty8TYqCzxoGLcmRnEJgGHIlUsqJijoMCQGH M6ESIrYiEy7ZiYw9+FRIkb6s6OvZJwCZeNeblET0jiHhBUFQyDpUKxzatOOKcHce dHMjhtS4rJgeaRXoX9GVnGS50bRitsYI3ALv00ICb5LBS+TLEHTZwXtej4w7aEFi A83EWbJpFvrpvb5KqQUDTWa020kID4ADp9zK6Bc74lgMSEgeNS2pcocnSJ4SE6io xCe9GFolW0y25ws0q4a5FrYUzlwPQA+aAUfK7uUfdY0qIEi4DWOv3rjDWThT567p N5ROvblY7zaXJ3w2LUCJw6gl1yxyiQ== =g4a2 -----END PGP SIGNATURE----- --=-=-=--