From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4IEvI3H7MmX8DAEAG6o9tA:P1 (envelope-from ) for ; Sat, 21 Oct 2023 00:13:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4IEvI3H7MmX8DAEAG6o9tA (envelope-from ) for ; Sat, 21 Oct 2023 00:13:05 +0200 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 ED7F86A855 for ; Sat, 21 Oct 2023 00:13:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="aY9TT/tO"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697839985; 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=0mhjtuhuws5CdJH2K/ytnucM+DM5QfC6FdDgYo+ftpk=; b=TaLxb3HmnHshlBZ3833Bqehh+Dwe63OPoNFahv4xo8/NPl0gdgoE1lWdZwix9yiIHAGFWu xzsKBCzO16AX8T8Fr2Q5jedeuqijj30esTr8LHPbqshx61qU5sXwAawTXEpxrbUY2L8kxQ awtnU6Dx0XFAixgCdrD2AjY+KfWskAvPvKyHxI8BFJqokCItWQRasu39Uep7UH3UaWa5tv jmD5lz+hBQRkFXW7QEYEopvO0uLvnhDzUemBsjJGDONxF5XvFRroTBq9GNEOY89aWlALX8 mC82z7NRcctrvTBp/QjDpfLZdTNDO6voIchWMT4tPBSLbVxMzxHGGaFjAbZw3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697839985; a=rsa-sha256; cv=none; b=pX5SPJHXip0aQud0OXX4UlzTQZNfzlcoNgWi8eGGaLtefrpAtCVngqXcXtb1xa+NRsjsS4 3btKL66qlaCwBHcbhB+oqzhLk3RaTpl1rN2GU9+fyUECuvkhf2hhUbJu9+Ksi9kTacfmnu 6GB3SPlzgn27yng9tYtDj+RLr46I8S99jJ+A2/K8d9Bh/NFEWj7YCkWQojp+GxRrYLC3uK 3kxUXRzD5Udbc3R3nqixDqGDLY27vVhLLI8x8gqMac5UoNSf+W8hxUQXkbf2E3l8csctPQ 3p4JD7jYKeRrHyzE/xR7v+IyTBqPnFXzyDeK8KGKTLPFE2u1MmWbRqXxocpnXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="aY9TT/tO"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtxj3-0005h7-HI; Fri, 20 Oct 2023 18:12:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtxj1-0005gw-61 for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 18:12:11 -0400 Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtxiz-0004DT-CJ for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 18:12:10 -0400 Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-4576946ce96so550269137.0 for ; Fri, 20 Oct 2023 15:12:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697839927; x=1698444727; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0mhjtuhuws5CdJH2K/ytnucM+DM5QfC6FdDgYo+ftpk=; b=aY9TT/tOd2xu0Gw5PxYHfN1TrlfRv5WpEqeoKpXs3la7FhBiJ6NOhV+IE7Fis0LqFC fhoX8CI9/wYaqNdCASEgXQIDUhkR4Zuvc6ooxHZ/5Bn0zjhrooSLOdxIU4rtsSp8u8Bc RFvvhpcs5z8y7q59c4cK5QMYPztyJ8iLwF70ibba/krq9S9ClM4gufV3UJyQP7X7Qaxx 9j+9+Y52MHQi5TGvaL8Wv9TvoiwiKnqYtx2YTJe5coDlrohSUkzau+mOWmx3sijmnyYF bS/Cy5ewhZNDnet3ou0Z3K2YRIMH91vWsrPoXbwgPX+/T5eHxl/OQtNXQjSvA4I6f+4g 5GNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697839927; x=1698444727; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0mhjtuhuws5CdJH2K/ytnucM+DM5QfC6FdDgYo+ftpk=; b=BLJZFZbTdttu/J2uRjtmBbCWqHExR1BRDS4huLETEmw8n99UhJfbOhXHrJcmcOzTYx SLH+ksZbo0nC+5WK78TX2G7yjaLqQrjj1iQq8TYqCzOH9zkeLVjhRGKs68x57FUt6X2u yJQxsqf2lnxB/+YFUdPGkHaCYeora8OZGEXmzbRXxD/2TXCFBvHohhyxG93rYr5dMx5w bQ4YfVDs+X5Pcnx304kf9dZqmKpXoZKQsWx9O4OiCi7EwxUici7UpOefC2PI3N3Dkrk6 Qp7orz9Dh2jFlNRKmztZewFtphANugsD8jOt3qSdNZZAHA7bo1auEKpVXLDgH4pRrGII dP5Q== X-Gm-Message-State: AOJu0YwFRwjMcRMYe11TJSnKzbpumOf/T434KL3SXsmmdJazNW68hB93 4BuQBxoYvCwYDZOUjf9IbWE/lwKp09ak2WisM5leVvjLasI= X-Google-Smtp-Source: AGHT+IFI3Httw/R0Z6YEzJblK2W8RkpGGlJ0CJuywdAur+qVunbVaEtE5sQt0MrOuIFHZQ/FElRuagAlrrtMIs1qBM4= X-Received: by 2002:a67:cc14:0:b0:452:8423:e957 with SMTP id q20-20020a67cc14000000b004528423e957mr3135953vsl.28.1697839927543; Fri, 20 Oct 2023 15:12:07 -0700 (PDT) MIME-Version: 1.0 References: <877cnhyuom.fsf@tor-Prestige-15-A10SC.mail-host-address-is-not-set> In-Reply-To: <877cnhyuom.fsf@tor-Prestige-15-A10SC.mail-host-address-is-not-set> From: Rodrigo Morales Date: Fri, 20 Oct 2023 22:11:51 +0000 Message-ID: Subject: Re: Feature request: IDs for everything To: Tor Erlend Fjelde Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000c451fc06082d2951" Received-SPF: pass client-ip=2607:f8b0:4864:20::e33; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-vs1-xe33.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.44 X-Migadu-Queue-Id: ED7F86A855 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.44 X-TUID: 8zX2m2cTQFv9 --000000000000c451fc06082d2951 Content-Type: text/plain; charset="UTF-8" Currently, headlines can have an ID (see minimal working example below): #+BEGIN_SRC org * My headline 1 * My headline 2 :PROPERTIES: :ID: e8745be0-906d-4e02-b427-d298f5751f6c :END: #+END_SRC Blocks can't have IDs, but you could use a UUID as the for blocks (see minimal working example below). You can do the same with tables. #+BEGIN_SRC org ,#+NAME: 412f567b-26ce-4f21-b07f-f5296c830314 ,#+BEGIN_SRC sh seq 1 3 ,#+END_SRC ,#+RESULTS: 412f567b-26ce-4f21-b07f-f5296c830314 ,#+begin_example 1 2 3 ,#+end_example ,#+HEADER: :noweb yes ,#+BEGIN_SRC sh echo foo <<412f567b-26ce-4f21-b07f-f5296c830314()>> ,#+END_SRC ,#+RESULTS: ,#+begin_example foo 1 foo 2 foo 3 foo ,#+end_example #+END_SRC What I understand from your message is that you would like to have a new header argument called #+ID: that could be used for code blocks and tables. Am I right? If so, I have a question: What could be the added benefits of having such a header argument? I can think of this benefit: #+NAME would be used for referencing them through a human-friendly name and the name could change and the #+ID would be an UUID that is not expected to change. On Fri, 20 Oct 2023 at 19:13, Tor Erlend Fjelde wrote: > Hi all, > > I was wondering if there's a reason why we couldn't have IDs a la > org-id.el for everything? > It seem to me that it would be useful to use something like `#+ID` in > place of `#+NAME` for tables, blocks, etc. as well as headlines. > Would this go against the intended design of org-id.el, or is this a > change that would be welcome but that no one has gotten around to > implementing yet? > > Also, sorry if this is not correct way to go about this; it's my first > time posting to a mailing list. Let me know if there are some guidelines or > something somewhere that I should read and make use of. > > All the best, > Tor > > --000000000000c451fc06082d2951 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Currently, headlines can have an ID (see minimal work= ing example below):

#+BEGIN_SRC org
* My= headline 1
* My headline 2
:PROPERTIES:
:ID:= e8745be0-906d-4e02-b427-d298f5751f6c
:END:
#+END_S= RC

Blocks can't have IDs, but you could use a = UUID as the for blocks (see minimal working example below). You can do the= same with tables.

#+BEGIN_SRC org
,#+NAME:= 412f567b-26ce-4f21-b07f-f5296c830314
,#+BEGIN_SRC sh
seq 1 3
,#+E= ND_SRC

,#+RESULTS: 412f567b-26ce-4f21-b07f-f5296c830314
,#+begin_= example
1
2
3
,#+end_example

,#+HEADER: :noweb yes
,#= +BEGIN_SRC sh
echo foo <<412f567b-26ce-4f21-b07f-f5296c830314()>= ;>
,#+END_SRC

,#+RESULTS:
,#+begin_example
foo 1
foo = 2
foo 3
foo
,#+end_example
#+END_SRC

W= hat I understand from your message is that you would like to have a new he= ader argument called #+ID: that could be used for code blocks and tables. A= m I right? If so, I have a question: What could be the added benefits of ha= ving such a header argument? I can think of this benefit: #+NAME would be u= sed for referencing them through a human-friendly name and the name could c= hange and the #+ID would be an UUID that is not expected to change.

On Fri, 20 Oct 2023 at 19:13, Tor Erlend Fjelde <tor.github@gmail.com> wrote:
Hi all,

I was wondering if there's a reason why we couldn't have IDs a la o= rg-id.el for everything?
It seem to me that it would be useful to use something like `#+ID` in place= of `#+NAME` for tables, blocks, etc. as well as headlines.
Would this go against the intended design of org-id.el, or is this a change= that would be welcome but that no one has gotten around to implementing ye= t?

Also, sorry if this is not correct way to go about this; it's my first = time posting to a mailing list. Let me know if there are some guidelines or= something somewhere that I should read and make use of.

All the best,
Tor

--000000000000c451fc06082d2951--