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 13:38:30 +0000

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

>> I recommend changing your capture template to
>> (file+olp "~/grupos2024.org" "Grupos")
>
> That gives an error, as gives file+headline
> so this part 
>
> (setq org-capture-templates
>       '(
>         ("m" "Mail options")
>         ("mk" "Annu Grupos Ejercicios" entry (file+olp 
> "~/ALLES/HGs/tex/vorlesungen/HGAnnu/Hojas-Teoria/Soluciones-2024/grupos2024.org")

You forgot "Grupos". Should be

(file+olp
"~/ALLES/HGs/tex/vorlesungen/HGAnnu/Hojas-Teoria/Soluciones-2024/grupos2024.org"
"Grupos")

>> Do you mean that you want IDs to be always added any time your create a
>> heading? If so, the common method is to add `org-insert-heading-hook'.
>
> That hook is empty, nevertheless and ID with an annoying END is inserted
> in the middle of the template

You can try M-x debug-on-entry <RET> org-id-new <RET> to trigger
backtrace when `org-id-new' is called and see what is calling it.
Then, M-x cancel-debug-on-entry to disable the debugger.

-- 
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]