From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Parsons Subject: Re: Merge Properties into Template Date: Thu, 6 Oct 2011 16:56:27 +0100 Message-ID: References: <4E8DA42F.6040306@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBqJD-0000DS-6r for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 11:56:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBqJB-0008Dl-R4 for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 11:56:31 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:51416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBqJB-0008Dh-Ir for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 11:56:29 -0400 Received: by wwp14 with SMTP id 14so3789374wwp.30 for ; Thu, 06 Oct 2011 08:56:28 -0700 (PDT) In-Reply-To: <4E8DA42F.6040306@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org 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 newbie) I was able to get running quickly and easily. > Here's a modest example that will work with your sample document: ...... > Evaluate this code. Then place point in the Fido entry, do `M-x > cm/org-merge', and type `Dog Template' at the prompt. > > To improve on that, how do you want to use it? My actual use case is that I want to merge data about letters and phone calls into documents for printing with TeX. > Once Fido's data are merged with the template, what do you want to do with > the results? Mail them to someone? Export them to HTML? Make a new Org entry > with the contents and file it somewhere? Of practical benefit to me would be either: (a) make a new Org entry and file it (as you suggest) or (b) simply put it in the kill ring, so that I can yank it wherever I want. Again, thanks so much for your help, and also the other replies I received. I'm very impressed by the org-mode community responding so quickly to my question. Richard