From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Re: question about capture templates Date: Tue, 22 Feb 2011 12:37:31 +0100 Message-ID: <87ei70uwp0.fsf@gnu.org> References: <80ei71o17z.fsf@missioncriticalit.com> <87k4gtpcvp.fsf@berkeley.edu> <80bp255935.fsf@missioncriticalit.com> <0973A1B4-5892-4685-A2F6-D34C66ECAB67@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=49068 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrqYc-0007iR-T3 for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 06:37:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrqYb-0003Oz-Qy for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 06:37:30 -0500 Received: from mail-bw0-f51.google.com ([209.85.214.51]:39210) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrqYb-0003Ov-H1 for emacs-orgmode@gnu.org; Tue, 22 Feb 2011 06:37:29 -0500 Received: by bwz10 with SMTP id 10so3210756bwz.38 for ; Tue, 22 Feb 2011 03:37:28 -0800 (PST) In-Reply-To: <0973A1B4-5892-4685-A2F6-D34C66ECAB67@gmail.com> (Carsten Dominik's message of "Tue, 22 Feb 2011 10:15:15 +0100") 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Vauban , "Filippo A. Salustri" , emacs-orgmode@gnu.org, =?iso-8859-1?Q?S=E9bastien?= Hi Carsten, Carsten Dominik writes: > I have just implemented that whenever you mean a file name > in capture templates, you can instead give a function, a > variable, or a lisp form. So your original attempt > >>> ("m" "Message" entry (file+datetree (buffer-file-name >>> (buffer-base-buffer))) "* MSG @ %U %?\n %a") > > should now work. Neat, thanks! -- Bastien