From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: create new files from capture Date: Wed, 20 Apr 2011 15:44:23 -0400 Message-ID: <4864.1303328663@alphaville.americas.hpqcorp.net> References: <1696133DB0E548409327158967872500@gmail.com> <87pqp1q18t.wl%dmaus@ictsoc.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCdK6-0001eM-6S for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 15:44:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCdK4-0006Uu-Tk for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 15:44:26 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:2074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCdK4-0006Uk-Mv for emacs-orgmode@gnu.org; Wed, 20 Apr 2011 15:44:24 -0400 In-Reply-To: Message from Bill Wishon of "Wed, 20 Apr 2011 19:22:39 -0000." 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: Bill Wishon Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Bill Wishon wrote: > Bill Wishon wishon.org> writes: > > > What I'm trying to figure out now is how to read the template from a file. > > The documentation says that it can be done by using (file "path/to/file") > > in place of the template text argument, but I haven't gotten that working yet. > > Nevermind, my elisp skills are rusty (file "path/to/template.org") works fine, > what I was trying to do required lisp code evaluation in that context and > therefore didn't work eg: (file (concat org-directory "/template.org")) to do > that I'd have to use (function function-returning-the-template), but it's not > really worth it for what I was trying to do. > Alternatively, you can use the backquote mechanism - see e.g. http://thread.gmane.org/gmane.emacs.orgmode/17612/focus=17620 Nick