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 WFiYIBTz0V9nPQAA0tVLHw (envelope-from ) for ; Thu, 10 Dec 2020 10:06:12 +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 MIV5HBTz0V8wGAAA1q6Kng (envelope-from ) for ; Thu, 10 Dec 2020 10:06:12 +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 8C9869402B6 for ; Thu, 10 Dec 2020 10:06:11 +0000 (UTC) Received: from localhost ([::1]:38556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knIpt-0004EJ-35 for larch@yhetil.org; Thu, 10 Dec 2020 05:06:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knIfp-0004Pu-VG for emacs-orgmode@gnu.org; Thu, 10 Dec 2020 04:55:45 -0500 Received: from mail-ua1-f44.google.com ([209.85.222.44]:34655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knIfn-0001iG-Jq for emacs-orgmode@gnu.org; Thu, 10 Dec 2020 04:55:45 -0500 Received: by mail-ua1-f44.google.com with SMTP id t19so1506822uaq.1 for ; Thu, 10 Dec 2020 01:55:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=73SP9UwhLEOptXrKKeZtX1bssu2sTy+QASfwYqes9lA=; b=Fj88rAh1BkmG5DL+p2ZyunptdHLGcyDC3iN/IKYz9zb5+Yb8F3gLM43GgyQ4+rGpl3 jwVM6hnm8GAvN/CwDU46qclN20/25t936tYONg8biqcjlML8v9VFz2Smu+gujtowMjvB XdNXZBsF/4S5HcSYsvEuO6eRCCtV57dxKlfmvqlzucjRnIChT9D7PGsbjgfp7Rj8mZ7+ K0zCvA2A1sZ4Lh3ZD/1iW3i5+SiSGZP++l+s3dxLQG1etBNaYxTbmzNc/Dy2XH2Ic3Bx iAjvaSALHvKYaxE/afD/yEhYzUwc+QwHxbDw919/FiBIPMATIguCWp7gkseivXqGsC55 LhUA== X-Gm-Message-State: AOAM531Rs9FmU8Ba1kMSDuYUrYl9RvUYGBLwT2JC69RL6Hn3r7FQApVd LrBsz8/GMzFEUG3y7V5KtnCU77lK6WjiZXEQbmc= X-Google-Smtp-Source: ABdhPJzNZqfJ5ZmblBq7q0utpilppg9V1aCTZhuk+Zuf9ySGfzicO87A/kYpiGOwln0xDDBHMutzzf+H+cEPWQWf8kM= X-Received: by 2002:a9f:3fc9:: with SMTP id m9mr7023526uaj.143.1607594141816; Thu, 10 Dec 2020 01:55:41 -0800 (PST) MIME-Version: 1.0 References: <87v9dbelky.fsf@gmail.com> In-Reply-To: From: Carsten Dominik Date: Thu, 10 Dec 2020 10:55:25 +0100 Message-ID: Subject: Re: stability of toc links To: Samuel Wales Content-Type: multipart/alternative; boundary="000000000000c41caa05b6192d97" Received-SPF: pass client-ip=209.85.222.44; envelope-from=carsten.dominik@gmail.com; helo=mail-ua1-f44.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: org-mode list , TEC Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.70 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=uva.nl (policy=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: 8C9869402B6 X-Spam-Score: -0.70 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7kJbJ6NWaesi --000000000000c41caa05b6192d97 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 9, 2020 at 10:25 PM Samuel Wales wrote: > just so everybody is on the same page, i think carsten is talking > about tec's code that generates html id's that are then used in urls? > Yes, I mean this code, or something like this, to aid the automatic creation of links that are somewhat stable. I have been missing this very much. Kind regards Carsten > > imo great idea. > > > On 12/9/20, Carsten Dominik wrote: > > I think we should merge this code into Org. > > > > Kind regards > > > > Carsten > > > > On Wed, Dec 9, 2020 at 3:54 AM TEC wrote: > > > >> > >> Hi Sam, link stability is a concern I've had too. I currently have a f= ix > >> (or at the very least, an improvement) for this in my config where I > >> overwrite org-export-get-reference. (see: > >> > https://eur04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Ftecos= aur.github.io%2Femacs-config%2Fconfig.html%23nicer-generated-heading&da= ta=3D04%7C01%7Cc.dominik%40uva.nl%7C64cff9b5261046b136f808d89c88ebcf%7Ca0f1= cacd618c4403b94576fb3d6874e5%7C1%7C0%7C637431459175966570%7CUnknown%7CTWFpb= GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7= C1000&sdata=3DjE5t3HVjViPeswx%2BQP7Qe0kdrHTZaS3r4WByndfU71g%3D&rese= rved=3D0 > >> ). > >> > >> I raised this on the list a while ago --- > >> > https://eur04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Forgmo= de.org%2Flist%2FE1jxAjq-0004Dk-LH%40lists.gnu.org%2F&data=3D04%7C01%7Cc= .dominik%40uva.nl%7C64cff9b5261046b136f808d89c88ebcf%7Ca0f1cacd618c4403b945= 76fb3d6874e5%7C1%7C0%7C637431459175966570%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM= C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata= =3D%2Fpl%2BCWuuwqY2voqj0VZpu0MCqniow5%2FRjixB8SycDUM%3D&reserved=3D0 > but there > >> didn't seem to be much interest. > >> > >> All the best, > >> Timothy > >> > >> Samuel Wales writes: > >> > >> > when you link to a section using toc, you get a link like > >> > > >> > > >> > https://eur04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Ftheka= fkapandemic.blogspot.com%2F2020%2F02%2Fcrimes-against-humanity_3.html%23org= 080f0ab&data=3D04%7C01%7Cc.dominik%40uva.nl%7C64cff9b5261046b136f808d89= c88ebcf%7Ca0f1cacd618c4403b94576fb3d6874e5%7C1%7C0%7C637431459175966570%7CU= nknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLC= JXVCI6Mn0%3D%7C1000&sdata=3DnHDQx0BMqTeDGLt3OFCAWcLoCrpDoWEbticHf9NT1ZY= %3D&reserved=3D0 > >> > > >> > will these links break if somebody copies them and pastes them > >> > elsewhere? what if you add a section? > >> > > >> > there doesn't seem to be a perfect solution, short of adding custom = id > >> > or id to everything, but perhaps a fuzzy hash of the header and > >> > contents of the section could be used? or a strict hash of the > >> > header? is anything like this being done? just curious. > >> > >> > >> > > > > > -- > The Kafka Pandemic > > Please learn what misopathy is. > > https://eur04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Ftheka= fkapandemic.blogspot.com%2F2013%2F10%2Fwhy-some-diseases-are-wronged.html&a= mp;data=3D04%7C01%7Cc.dominik%40uva.nl%7C64cff9b5261046b136f808d89c88ebcf%7= Ca0f1cacd618c4403b94576fb3d6874e5%7C1%7C0%7C637431459175966570%7CUnknown%7C= TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0= %3D%7C1000&sdata=3Ddb%2FAmlA1knJ%2Bph6jM%2B6AvXND%2BdMT8YFpmmcT33kqJrg%= 3D&reserved=3D0 > --000000000000c41caa05b6192d97 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Dec 9, 2020 at 10:25 PM Samue= l Wales <samologist@gmail.com> wrote:
jus= t so everybody is on the same page, i think carsten is talking
about tec's code that generates html id's that are then used in url= s?




imo great idea.


On 12/9/20, Carsten Dominik <
dominik@uva.nl> wrote:
> I think we should merge this code into Org.
>
> Kind regards
>
> Carsten
>
> On Wed, Dec 9, 2020 at 3:54 AM TEC <tecosaur@gmail.com> wrote:
>
>>
>> Hi Sam, link stability is a concern I've had too. I currently = have a fix
>> (or at the very least, an improvement) for this in my config where= I
>> overwrite org-export-get-reference. (see:
>> https://eur04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Ftecos= aur.github.io%2Femacs-config%2Fconfig.html%23nicer-generated-heading&am= p;data=3D04%7C01%7Cc.dominik%40uva.nl%7C64cff9b5261046b136f808d89c88ebcf%7C= a0f1cacd618c4403b94576fb3d6874e5%7C1%7C0%7C637431459175966570%7CUnknown%7CT= WFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%= 3D%7C1000&amp;sdata=3DjE5t3HVjViPeswx%2BQP7Qe0kdrHTZaS3r4WByndfU71g%3D&= amp;amp;reserved=3D0
>> ).
>>
>> I raised this on the list a while ago ---
>> https://eu= r04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Forgmode.org%2Flis= t%2FE1jxAjq-0004Dk-LH%40lists.gnu.org%2F&amp;data=3D04%7C01%7Cc.dominik= %40uva.nl%7C64cff9b5261046b136f808d89c88ebcf%7Ca0f1cacd618c4403b94576fb3d68= 74e5%7C1%7C0%7C637431459175966570%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwM= DAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3D%2= Fpl%2BCWuuwqY2voqj0VZpu0MCqniow5%2FRjixB8SycDUM%3D&amp;reserved=3D0= but there
>> didn't seem to be much interest.
>>
>> All the best,
>> Timothy
>>
>> Samuel Wales <samologist@gmail.com> writes:
>>
>> > when you link to a section using toc, you get a link like
>> >
>> >
>> https://eur04.safelinks.protection.outlook.com/?url=3Dhttps%3= A%2F%2Fthekafkapandemic.blogspot.com%2F2020%2F02%2Fcrimes-against-humanity_= 3.html%23org080f0ab&amp;data=3D04%7C01%7Cc.dominik%40uva.nl%7C64cff9b52= 61046b136f808d89c88ebcf%7Ca0f1cacd618c4403b94576fb3d6874e5%7C1%7C0%7C637431= 459175966570%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLC= JBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=3DnHDQx0BMqTeDGLt3OFCAWcL= oCrpDoWEbticHf9NT1ZY%3D&amp;reserved=3D0
>> >
>> > will these links break if somebody copies them and pastes the= m
>> > elsewhere?=C2=A0 what if you add a section?
>> >
>> > there doesn't seem to be a perfect solution, short of add= ing custom id
>> > or id to everything, but perhaps a fuzzy hash of the header a= nd
>> > contents of the section could be used?=C2=A0 or a strict hash= of the
>> > header?=C2=A0 is anything like this being done?=C2=A0 just cu= rious.
>>
>>
>>
>


--
The Kafka Pandemic

Please learn what misopathy is.
https://eur04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fthe= kafkapandemic.blogspot.com%2F2013%2F10%2Fwhy-some-diseases-are-wronged.html= &amp;data=3D04%7C01%7Cc.dominik%40uva.nl%7C64cff9b5261046b136f808d89c88= ebcf%7Ca0f1cacd618c4403b94576fb3d6874e5%7C1%7C0%7C637431459175966570%7CUnkn= own%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXV= CI6Mn0%3D%7C1000&amp;sdata=3Ddb%2FAmlA1knJ%2Bph6jM%2B6AvXND%2BdMT8YFpmm= cT33kqJrg%3D&amp;reserved=3D0
--000000000000c41caa05b6192d97--