emacs-orgmode
[Top][All Lists]
Advanced

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

Re: org-capture-template with changing heading (including a TIMESTAMP)


From: Ihor Radchenko
Subject: Re: org-capture-template with changing heading (including a TIMESTAMP)
Date: Sun, 03 Oct 2021 17:19:06 +0800

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

> I tried 
>
>         ("mg" "Ejercicios Annu21: hechos, solicitados y asignados"
>          table-line (file+function 
> "~/ALLES/HGs/tex/vorlesungen/HGAnnu/Ejercios-Alumnos-Grupos/2021/Ejercios-Teoria21.org"
>  "Ejercicios Annu21: hechos, solicitados y asignados" (clock))
>          "| |%^{Grp|1|2|3|4|5|6|7|8}  |%^{Hj|1|2|3|4|5|6|7} 
> |%^{Ej-As|1|2|3|4|5} |%^{Tit}| | [] | |   | %:fromname| |%:fromaddress |  
> %(my-extract-cc)  |%:subject | %:date |%a | "  :prepend t :empty-lines 1 
> :unnarrowed t
>          )
>
> But it does not work, I receive the error 

Because you did not supply a function. The docstring says:
(file+function "path/to/file" function-finding-location)

function-finding-location should be a valid Elisp function that will
need to take care about moving point to target heading.  What you have
in your template is
(key description table-line (file+function file-name
!some-string-that-should-not-be-there! 
!(clock)-which-is-a-third-element-and-also-should-not-be-there!) ...


Best,
Ihor



reply via email to

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