From: Sebastian Rose <sebastian_rose@gmx.de>
To: Johan Friis <mail@alterecco.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [Patch] Capture: %[FILE] and %(SEXP) (again)
Date: Sat, 17 Jul 2010 22:23:38 +0200 [thread overview]
Message-ID: <87y6d9zwl1.fsf@gmx.de> (raw)
In-Reply-To: <87r5j2xcp1.fsf@alterecco.net> (Johan Friis's message of "Sat, 17 Jul 2010 18:03:54 +0100")
[-- Attachment #1: Type: text/plain, Size: 784 bytes --]
Johan Friis <mail@alterecco.net> writes:
> I have this in my org-capture-templates, and it works just fine. The
> note.org file is of course an org-mode file, with normal syntax.
>
> ("j" "Journal" entry (file "~/note/journal.org") (file "~/note/template/journal.org"))
>
> I am not sure if I misunderstood what you want to do, just wanted to
> state that the above works great for me (it expands what it is supposed to)
Ahhhh!
This does what I expect, but it is not documented.
Thanks Johan!
That's why I wrote my previous mail? I simply could not figure out, how
to achieve that and I did not know about (file "filename"). Where is
this in the docs?
But, OK, forget it. I now know that I have to use the (file "...")
syntax.
So this is one of the neccessary patches:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org.texi-document-template-files.patch --]
[-- Type: text/x-diff, Size: 688 bytes --]
diff --git a/doc/org.texi b/doc/org.texi
index f1f894a..e5d0a3b 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -6109,7 +6109,9 @@ file and location.
The template for creating the capture item. If you leave this
empty, an appropriate default template will be used. Otherwise this is a
string with escape codes, which will be replaced depending on time
-and context of the capture call. See below for more details.
+and context of the capture call. The string with escapes may be loaded
+from a template file, using the special syntax `(file
+``path-to-template'')'. See below for more details.
@item properties
The rest of the entry is a property list of additional options.
[-- Attachment #3: Type: text/plain, Size: 161 bytes --]
Still, as I said in my previous mail, the way "%[FILE]" and "%(SEXP)"
work is not quite right and the docs are still incomplete.
Best wishes
Sebastian
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-07-17 20:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-17 11:44 [Patch] Capture: %[FILE] and %(SEXP) (again) Sebastian Rose
2010-07-17 17:03 ` Johan Friis
2010-07-17 20:23 ` Sebastian Rose [this message]
2010-07-18 5:40 ` Carsten Dominik
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6d9zwl1.fsf@gmx.de \
--to=sebastian_rose@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=mail@alterecco.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.