emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [Patch] Capture: %[FILE] and %(SEXP) (again)


From: Sebastian Rose
Subject: Re: [Orgmode] Re: [Patch] Capture: %[FILE] and %(SEXP) (again)
Date: Sat, 17 Jul 2010 22:23:38 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Johan Friis <address@hidden> 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:

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.



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

reply via email to

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