From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Filippo A. Salustri" Subject: question about capture templates Date: Mon, 21 Feb 2011 10:08:56 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0103055543==" Return-path: Received: from [140.186.70.92] (port=55145 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrXPW-0006O3-8V for emacs-orgmode@gnu.org; Mon, 21 Feb 2011 10:10:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrXPV-0000XT-Bm for emacs-orgmode@gnu.org; Mon, 21 Feb 2011 10:10:50 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:55615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrXPV-0000XH-7W for emacs-orgmode@gnu.org; Mon, 21 Feb 2011 10:10:49 -0500 Received: by wwb17 with SMTP id 17so6322760wwb.30 for ; Mon, 21 Feb 2011 07:10:47 -0800 (PST) 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: emacs-orgmode@gnu.org --===============0103055543== Content-Type: multipart/alternative; boundary=0016e6471836251391049ccc3e00 --0016e6471836251391049ccc3e00 Content-Type: text/plain; charset=ISO-8859-1 Hi, I would really like to be able to vary the file into which a captured item goes. Specifically, I'd like to insert the item into whatever file I was visiting when I started the capture. I've been trying something like this: > ("m" "Message" entry (file+datetree (buffer-file-name > (buffer-base-buffer))) "* MSG @ %U %?\n %a") But the (buffer-file-name (buffer-base-buffer)) doesn't work because the item keeps ending up in the default capture file. Can anyone suggest a way to do this? Cheers. Fil Salustri -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salustri@ryerson.ca http://deseng.ryerson.ca/~fil/ --0016e6471836251391049ccc3e00 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I would really like to be able to vary the file into= which a captured item goes. =A0Specifically, I'd like to insert the it= em into whatever file I was visiting when I started the capture.

I've been trying something like this:
("m" "Message" entry=A0(file+datetree (buffer-file-name= (buffer-base-buffer)))=A0"* MSG @ %U %?\n=A0%a")

But the (buffer-file-name (buffer-base-buffer)) doesn'= t work because the item keeps ending up in the default capture file.

Can anyone suggest a way to do this?

Cheers.
Fil Salustri

--
Filippo A. Salustri, = Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson Universit= y
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 77= 49
Fax: 416/979-5265
Email: sa= lustri@ryerson.ca
http://= deseng.ryerson.ca/~fil/
--0016e6471836251391049ccc3e00-- --===============0103055543== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0103055543==--