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 8M7WFIXPGl/iDQAA0tVLHw (envelope-from ) for ; Fri, 24 Jul 2020 12:09:41 +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 0JurEIXPGl9lWwAA1q6Kng (envelope-from ) for ; Fri, 24 Jul 2020 12:09:41 +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 C529D940214 for ; Fri, 24 Jul 2020 12:09:40 +0000 (UTC) Received: from localhost ([::1]:40934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jywWB-0003Hw-7s for larch@yhetil.org; Fri, 24 Jul 2020 08:09:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jywVr-0003Hl-LJ for emacs-orgmode@gnu.org; Fri, 24 Jul 2020 08:09:19 -0400 Received: from smtprelay03.ispgateway.de ([80.67.31.41]:47301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jywVp-0006oR-HY for emacs-orgmode@gnu.org; Fri, 24 Jul 2020 08:09:19 -0400 Received: from [46.244.219.13] (helo=condition-alpha.com) by smtprelay03.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jywVm-0008MF-82; Fri, 24 Jul 2020 14:09:14 +0200 Message-Id: From: Alexander Adolf To: TEC , org-mode-email Subject: Re: [Interest] Determanistic Org IDs In-Reply-To: References: Date: Fri, 24 Jul 2020 14:09:13 +0200 MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Received-SPF: pass client-ip=80.67.31.41; envelope-from=alexander.adolf@condition-alpha.com; helo=smtprelay03.ispgateway.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/24 08:09:14 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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.01, RCVD_IN_MSPIKE_WL=-0.01, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 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-Spam-Score: -1.01 X-TUID: oA/k2/TWl9ZA Hello Timothy, TEC writes: > [...] > Pros: > - Reduced 'noise' if exported files are commited - (With HTML) > links to particular elements in a file keep working across > multiple versions, most of the time > - (With HTML) links become more descriptive > > Cons: > - Inceased chance of ID collisions across files Longer IDs I > - think this could make a nice option for export settings. I'm > - aware of the 9.5 feature freeze, but thought I'd mention the > - idea to see if there's any interest in it. > > If you want to see what I've got happening, see > https://tecosaur.github.io/emacs-config/config.html#nicer-generated-heading. > [...] Interesting. Just a thought: have you considered computing a SHA-2 hash over either the totality of the heading and all its children (if you want the links to change when the content changes), or only the heading itself (keeping the id invariant for as long as the heading remains unchanged, but content below it can change)? This would have the advantage of solving both, your "noise issue" and at the same time removing the threat of id collisions; but at the cost of not having "speaking" links. Hoping to have helped, --alexander