From: Ihor Radchenko <yantar92@gmail.com>
To: Uwe Brauer <oub@mat.ucm.es>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-capture-template with changing heading (including a TIMESTAMP)
Date: Sun, 03 Oct 2021 17:19:06 +0800 [thread overview]
Message-ID: <87lf3a5uut.fsf@localhost> (raw)
In-Reply-To: <87ilyein6x.fsf@mat.ucm.es>
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
next prev parent reply other threads:[~2021-10-03 9:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-19 8:55 org-capture-template with changing heading (including a TIMESTAMP) Uwe Brauer
2021-10-03 6:40 ` Ihor Radchenko
2021-10-03 7:26 ` Uwe Brauer
2021-10-03 9:19 ` Ihor Radchenko [this message]
2021-10-04 10:51 ` Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lf3a5uut.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=oub@mat.ucm.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).