Re: [O] Merge Properties into Template

2011-10-07 Thread Christian Moe
PS. Note that with the code example I sent, your templates can also access the special properties listed in section 7.2 of the manual, such as TODO, ALLTAGS, TIMESTAMP, DEADLINE etc.

Re: [O] Merge Properties into Template

2011-10-06 Thread Christian Moe
Hi, On 10/6/11 5:56 PM, Richard Parsons wrote: (...) Firstly, thank you so much for taking the time to write some code, which (even as a newbie) I was able to get running quickly and easily. My pleasure. I'm finding my legs in elisp myself, and I often find a better solution to a problem I've

Re: [O] Merge Properties into Template

2011-10-06 Thread Richard Parsons
Hi Christian On Thu, Oct 6, 2011 at 1:50 PM, Christian Moe wrote: > Org doesn't already have a particular way to do this, I think, so a little > elisp is called for. It's fairly easy with the Org Properties API. Firstly, thank you so much for taking the time to write some code, which (even as a

Re: [O] Merge Properties into Template

2011-10-06 Thread Christian Moe
Hi, Org doesn't already have a particular way to do this, I think, so a little elisp is called for. It's fairly easy with the Org Properties API. Here's a modest example that will work with your sample document: #+begin_src emacs-lisp (defun cm/org-merge (target) "Fill a template headli

Re: [O] Merge Properties into Template

2011-10-06 Thread suvayu ali
On Thu, Oct 6, 2011 at 11:35 AM, Richard Parsons wrote: > Could someone point me to the right bit of the manual so I can learn > how to do this? Maybe some custom lisp function using the property API will do the job?

Re: [O] Merge Properties into Template; [babel]

2011-10-06 Thread Giovanni Ridolfi
Richard Parsons writes: Hi Richard, > > I have a node with properties and I would like to merge that data into > a template. For example: > > * Dogs > ** Fido > :PROPERTIES: > :BREED:West Highland Terrier > :COLOR:White > :AGE: 2 > :END: > * Templates > ** Dog Template >

[O] Merge Properties into Template

2011-10-06 Thread Richard Parsons
Hi all I'm new to emacs and I'm new to org-mode, apologies if I should have found this myself, but I have searched and come up blank. I have a node with properties and I would like to merge that data into a template. For example: * Dogs ** Fido :PROPERTIES: :BREED:West Highland Terrier