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 YKO5MyXrpmBgTQAAgWs5BA
(envelope-from )
for ; Fri, 21 May 2021 01:05:09 +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 mOBrLyXrpmCgNAAA1q6Kng
(envelope-from )
for ; Thu, 20 May 2021 23:05:09 +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 18AAD2DEAC
for ; Fri, 21 May 2021 01:05:09 +0200 (CEST)
Received: from localhost ([::1]:38368 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1ljrj1-000240-Tn
for larch@yhetil.org; Thu, 20 May 2021 19:05:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38194)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from ) id 1ljrid-00023Z-Qy
for emacs-orgmode@gnu.org; Thu, 20 May 2021 19:04:43 -0400
Received: from stw1.rcdrun.com ([217.170.207.13]:40875)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from ) id 1ljrib-0001gC-7l
for emacs-orgmode@gnu.org; Thu, 20 May 2021 19:04:43 -0400
Received: from localhost ([::ffff:102.85.29.242])
(AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384)
by stw1.rcdrun.com with ESMTPSA
id 00000000000ADF16.0000000060A6EB05.00003F25; Thu, 20 May 2021 16:04:37 -0700
Date: Fri, 21 May 2021 02:00:31 +0300
From: Jean Louis
To: Samuel Wales
Subject: Re: Custom <> possibility?
Message-ID:
Mail-Followup-To: Samuel Wales ,
emacs-orgmode@gnu.org
References:
<87pmxlyy5e.fsf@nicolasgoaziou.fr>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
In-Reply-To:
User-Agent: Mutt/2.0.6 (2021-03-06)
Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support;
helo=stw1.rcdrun.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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=1621551909;
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:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-unsubscribe:list-subscribe:list-post;
bh=HQFVfs86RS0D6q9pDKzwEqFAFsQRn/Y/A+NtSFar7K0=;
b=THKluZysVJ+0TtLk3iG1ObfLcE8/mMk7QC9on9bdrlUymv+a3R57CTffGwy/etoQKtgARy
smb4C2Emb/MKKLakpyymwvWan6Pb/s+pGqNOLsfX8lRK9V9CiMDphvnskFfP7LFv5i+GSv
1kZpiPNlzanqtT1bsk8lMnImRtqBRQorzwQ425bAdjKkjODHFoGEzoL2xCxrBJtnGqAw0F
BGLt6LqQfRCE8XxNa3yCWWn+8WUCGOcxe2UoK7eUyGOayyGBvZh6KbhZwxbFOPCn2eurVr
L4vqS5u3kKTQlRk3q3N1aWZoJDyDqpj3nlxX1f5egikzm0u3hvA2VBlDkwekWA==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621551909; a=rsa-sha256; cv=none;
b=mtpJrN7F569cfzyLIKPaysfCC/RBSyEhlIr3EK79vzskpRigspvzXqgixxkim3Fx59dBxH
pTLHb4g1gA/mtiLtGe2YVuimOYBsQ87+q2psJnO0G8wuOPaCy6O4rT2DH5OD+d2TM2E5kF
sKgKAtWdtJarIjZNMO5EpbPVKEvF2dHASn5nD3WF+0hJsoT42pF0u727wVnTK4pO4E4ogI
UJzRTeHPxXXOTRkHJEAdAU4s752hLZ4BBvk9DX9AQL8iVw9CEb6knEkgfCRkwxtjq2x6ID
G74YfBzgFpm097Oab32bm8Fmu4ydr+k02obLOsFolDl6AqtQbKzYfp28a31cwg==
ARC-Authentication-Results: i=1;
aspmx1.migadu.com;
dkim=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: -0.94
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: 18AAD2DEAC
X-Spam-Score: -0.94
X-Migadu-Scanner: scn0.migadu.com
X-TUID: DNtosfwk8rbX
* Samuel Wales [2021-05-21 01:19]:
> thanks for pointing us to this variable.
>
> docstring says "This process ensures that these values are unique and
> valid...", so it sounds like you could create non-unique or invalid
> identifiers without it.
>
> does this mean, for example, if the user exports a subtree with two
> link targets with the same user label, then if this variable is
> non-nil, then the output could include more than one link target?
I may try to give the example here:
<>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam
lectus. Sed sit amet ipsum mauris.
<>
Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut
tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper
ultricies.
which results in:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam
lectus. Sed sit amet ipsum mauris.
Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut
tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper
ultricies.
> what if this var were nil [the default], my brain is not working well
> now, but it seems as if the exporter could still get confused which
> target to link to, even if it is not printing duplicatedly-named
> targets.
>
> so i am curious what the purpose of the default is?
You already discovered the purpose: "This process ensures that these
values are unique and valid..."
Randomly generated internal hyperlinks are not part of author's
document creation and I don't believe they can be unique across all
documents as they rely on randomity, not uniqueness, but they may be
unique in one document. The sentence should say "This process ensures
that these values are unique to specific document and valid"
Problem with it is that those random anchors/links are random, and
that makes it a bad default for user. A user may bookmark the link
https://www.example.com/doc#org2cf8625 with some title, but with the
next document generation same link may appear as
https://www.example.com/doc#org6ac9de0 and that means that bookmark
disappeared, at least for HTML export.
For me personally I am editing Org text (not files) on a meta level
where all objects have its unique ID and from there I can create Org
files. Then each object of a structure of meta level Org has its
unique ID. Also the document has its unique ID. Then it becomes
possible to automatically create anchors like <<1:17311:31121>> which
are truly unique across all documents, remain immutable, and are
trackable. With "trackable" I mean that it is possible to generate a
list of "referenced by" documents, documents which hyperlink to that
anchor.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
Sign an open letter in support of Richard M. Stallman
https://stallmansupport.org/
https://rms-support-letter.github.io/