From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shelagh Manton Subject: using %(sexp) in remember templates Date: Sun, 14 Jun 2009 23:27:47 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFz7R-0000F7-UV for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 19:28:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFz7N-0000Di-4Z for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 19:28:09 -0400 Received: from [199.232.76.173] (port=43826 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFz7M-0000Df-Uv for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 19:28:04 -0400 Received: from main.gmane.org ([80.91.229.2]:36538 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MFz7M-0006Ro-IU for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 19:28:04 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MFz7G-0008UQ-6V for emacs-orgmode@gnu.org; Sun, 14 Jun 2009 23:27:58 +0000 Received: from 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au ([203.219.222.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jun 2009 23:27:58 +0000 Received: from shelagh.manton by 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Jun 2009 23:27:58 +0000 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 I'm trying to make a remember template that inserts some text automatically. I read in the manual that %(sexp) would expand in the template. This would be what I want, if I've understood the manual aright. I made a small function that inserts text (org-csa) and this is the template I originally tried. ("CSA" ?C "* TODO %^{topic} %^g\n %t\n %(org-csa) %&" "CSA.org" bottom) This put * TODO %^{topic} %^g <2009-06-15 Mon> %& In the remember buffer. I then tried ("CSA" ?C "* TODO %^{topic} %^g\n %t\n %^(org-csa) %&" "~/.org/CSA.org" bottom) Which prompted me for a string and added the (org-csa) in the remember buffer. (I filled in the various prompts) * TODO charity ball :July: <2009-06-15 Mon> (org-csa) Have I misunderstood the manual? I thought that the sexp would be evaluated in the remember buffer. But neither with the ^ prompt which at least made the remember buffer work as expected or without where even the other prompts did not work at all, the (org-csa) did not get expanded. Obviously I can evaluated it in the CSA.org buffer but that is not what I want at all. Maybe I should use org-eval? Shelagh