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 yDbPDhEoi2BOyAAAgWs5BA (envelope-from ) for ; Thu, 29 Apr 2021 23:41:37 +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 IDpuChEoi2AYHAAAbx9fmQ (envelope-from ) for ; Thu, 29 Apr 2021 21:41:37 +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 45FF4C11A for ; Thu, 29 Apr 2021 23:41:36 +0200 (CEST) Received: from localhost ([::1]:36602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcEPe-0005Wh-8q for larch@yhetil.org; Thu, 29 Apr 2021 17:41:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcEP5-0005Qi-Te for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 17:41:00 -0400 Received: from server173-4.web-hosting.com ([68.65.122.210]:56217) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcEP3-00014H-BB for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 17:40:59 -0400 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=ihOhVsbqtoxfLgWRsgkaeu/MVb6XjsoBiQ3B72xXDEQ=; b=bg8qt9xxraOB4kCmd9Uk3g1LV1 vZwqevY442irviInhi2fpxR8bRF03mKAW0T+4OSX4NSyAkLnYL6afG4f84+hFR16vH7Bbp35lPZeN cqQVNupRtkGQe6tcKsFIo3II7Saj289YBb+DdlzHrwjueo0JrhKTcdPEfsnlAMXZ0IPc91UJgfpbs mcG7WoRh7Ng+CWsIpNZxRMCvWTV/SD4VkzwvlIJtkUo1fYDAPz6a6OtFc440E1Pe1190MIchKHcx0 BalgnBqtbx02H2Yfw2apJ9mu/v9OTdCVzYcANPBKg7qNOL9c7y/h7SqSgTi/sqUwZ8Y+y9DOWs3SB dzKMT3IQ==; Received: from [::1] (port=56896 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.94) (envelope-from ) id 1lcEOG-0048tb-PQ for emacs-orgmode@gnu.org; Thu, 29 Apr 2021 17:40:13 -0400 MIME-Version: 1.0 Date: Thu, 29 Apr 2021 17:40:08 -0400 From: TRS-80 To: emacs-orgmode@gnu.org Subject: Re: stability of toc links In-Reply-To: References: <877dkzg9y2.fsf@nicolasgoaziou.fr> <87wnsx9rcj.fsf@nicolasgoaziou.fr> <87y2dc82ct.fsf@nicolasgoaziou.fr> <87sg3j4vbl.fsf@gmail.com> User-Agent: Roundcube Webmail/1.4.10 Message-ID: <33fd87ff1332b56114909973804df669@isnotmyreal.name> X-Sender: lists.trs-80@isnotmyreal.name 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: 33 X-Spam_score: 3.3 X-Spam_bar: +++ X-Spam_report: (3.3 / 5.0 requ) BAYES_50=0.8, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HAS_X_OUTGOING_SPAM_STAT=2.675, 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: , 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=1619732496; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ihOhVsbqtoxfLgWRsgkaeu/MVb6XjsoBiQ3B72xXDEQ=; b=I9jUTWQj1NBfu7UuLLee49A2WDXAmiOCOAznS3nqXea/vkIRXDNsn4xX7tDYqgNOMNmKqz uyUzdy4hIu7RoIwOOdFmCvo19iDyOc5QpSn6O+43p6uR+KBTvycuZwZYUvCH0mcrvkJ7HM uLNzKSPeb3bLMztJHi6DajlXcVF96vsIcR1kRP0i3ZctXXoDr48uZsCrugiraQudjeP7W3 /KyGzNiaL8jFM9qGCFk3GsuwHuEC8R/nzFgVyx0T/90ExFxsznaWhhapDQcN1qiw7wAGcr dr+xxxfLVm01KmgGHas6V1zDrXg2YdMn7+VVtMsJ4Mpu0OkN5JGFB2tdNZLQqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619732496; a=rsa-sha256; cv=none; b=SVGTSxPdDG20f9V0bUtjoWigXUlPt7eRtUw1dkWk75OPFHZ2gVc6Mt4SX8pf8lNMG85XUT 1L6impnJ6c2808+xRRnLdKt5OaupsGp+NDxIYWTGHAzUd5p6J8MflVjD0KFZhzEJbLE2pO fWFhjLqm4SijJ7GclUJmugD+0+oGX/jsSXMUdxjfHT3QKe5N0IRvoIqMdSgFHIU6153r6d WVy3kSiIznXkhXbCSG8kqET4kqSbZqxpWzP9fTVHQItu6dzBuMblLiZnxw9aMGmx5fXNcH nVaQJO+CumCTuoufaMOb4YuHwxjBv3gttC/2JR8X5fU0XgLMw1RANYx0ZHbg4Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=isnotmyreal.name header.s=default header.b=bg8qt9xx; 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: -1.46 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=isnotmyreal.name header.s=default header.b=bg8qt9xx; 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: 45FF4C11A X-Spam-Score: -1.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: qki/pzNiZrOz On 2021-04-21 19:30, Samuel Wales wrote: > as it has been a long time my original post is > > Message > ID > > and the content is > > === > when you link to a section using toc, you get a link like > > > https://thekafkapandemic.blogspot.com/2020/02/crimes-against-humanity_3.html#org080f0ab > > 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. My "quick and dirty" solution was to make a function to map over each heading and assign a custom ID based on the text of the heading. It only assigned one if one did not exist already (so in case you had done any manual adjustments they would not be overwritten). I had posted it very early in the thread, but it did not seem to gain much interest. It was not posted as a "long term and proper solution to be included into Orgmode" but rather a quick and easy workaround in the meantime. Cheers, TRS-80