From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: question about capture templates Date: Mon, 21 Feb 2011 23:14:22 +0100 Message-ID: <80bp255935.fsf@missioncriticalit.com> References: <80ei71o17z.fsf@missioncriticalit.com> <87k4gtpcvp.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Richard, Richard Lawrence wrote: > S=C3=A9bastien Vauban writes: >> "Filippo A. Salustri" wrote: >>> I would really like to be able to vary the file into which a captured i= tem >>> goes. Specifically, I'd like to insert the item into whatever file I was >>> visiting when I started the capture. > >> You have to use backquotes so that expressions are considered as code to >> execute, instead of data. See Emacs manual. > > I'm not sure that backquotes will do what the OP wants. Backquotes will > allow the OP to compute the value of a target file at the time the (setq > org-capture templates ...) form is evaluated. The OP needs a way to > determine the target file at the time of capture (right?), not at the time > the variable is set. You're definitely right. I missed the distinction "at Org launch time" vs "= at execution time"... Pull my answer off the records=C2=A0;-) Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode