emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with templates and ID in properties


From: Ihor Radchenko
Subject: Re: problems with templates and ID in properties
Date: Sun, 04 Feb 2024 18:57:33 +0000

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "IR" == Ihor Radchenko <yantar92@posteo.net> writes:
>
>> Uwe Brauer <oub@mat.ucm.es> writes:
>>> ("my" "Annu Grupos Ejercicios" entry (file+olp 
>>> "~/ALLES/HGs/tex/vorlesungen/HGAnnu/Hojas-Teoria/Soluciones-2024/grupos2024.org"
>>>  "Grupos")
>>> "** TODO %^{Grupo} %T %^g %(org-contacts-template-name)
>>> :ID: %(org-id-new)
>>> :Link:  %a   
>>> :Email: %(org-contacts-template-email)
>>> ...
>>> Works concerning the ** entry but inserts the unwanted END after 
>>> org-id-new.
>
> I obtain.
>
>   gnorb-registry-capture() is this the culprit?
>
>
> Debugger entered--entering a function:
> * org-id-new(nil)
>   org-id-get(12826 create)
>   org-id-get-create()

It is actually not the culprit. The problem is much simpler.
You forgot :PROPERTIES: line in your capture template.

So, what Org sees is

* Heading
:ID:
...
:END:

And it is not considered a property drawer :)

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]